Salve a tutti,
ottengo il seguente errore:
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 '' at line 6

nella seguente query:
Codice PHP:
//SELEZIONE TUTTE LE FOTO DEL CONTEST E VERIFICO SE C'E' IL FILTRO PER UTENTE
$filter_by_user "AND CompetitorID = " $getCurrentUser" ";


$qq_foto "SELECT 
                *
            FROM 
                works_2014
            WHERE 
                ContestID = " 
$currentContest['ID'] . " " $filter_by_user;


$q_foto mysql_query($qq_foto) or die (mysql_error()); 
secondo voi dov'è l'errore?

Grazie.