llegirtaula_asp -> Error [1064]: 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 'OR id_autonomias = OR check_espanya = 1)
ORDER BY RAND()
LIMIT 5' at line 4
SELECT * FROM banners_buscador
WHERE ((i_num_impresiones > i_num_impresiones_realizadas) OR (i_num_impresiones_realizadas IS NULL))
AND foto1 is not null AND foto1 <> ''
AND (id_provincias = OR id_autonomias = OR check_espanya = 1)
ORDER BY RAND()
LIMIT 5