I have the following code in php:
$sql = "SELECT * FROM musicas_curtidas
GROUP BY musica
ORDER BY count(musica)
WHERE musica != 'Rádio Turn - Você em primeiro lugar!' AND
WHERE musica != 'Radio Turn - Não importa o seu estilo! #2' AND
WHERE musica != 'Radio Turn - Não importa o seu estilo!' AND
WHERE musica != 'Rádio Turn - Comercial' AND
WHERE musica != 'Rádio Turn - Na Balada'
DESC LIMIT 3";
I'm getting an error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE music! =' Radio Turn - You in the first place! ' AND 'at line 4
How can I resolve this? I'm new to php.