DB function failed with error number 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 'AND (publish_up = '0000-00-00 00:00:00' OR publish_up <= NOW()) SQL=Select count(*) from mos_ptdir
WHERE catid=
AND (publish_up = '0000-00-00 00:00:00' OR publish_up <= NOW())
AND (publish_down = '0000-00-00 00:00:00' OR publish_down >= NOW())
AND state > 0
AND access<='0'
ORDER BY nom_pilote