Codice PHP:
You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near 'AND lan_id = 1 AND category_id = 3' at line 4 
Mi spiegate dov'è l'errore? Inoltre questa è la 3a query identica consecutiva di una funzione dove cambia solo il category_id...sulle prime due nessun problema!
Grazie.