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 ')) ORDER by id DESC' at line 1
SELECT id,title,scientificname,description,mediatype,filename,sizex,sizey,keyword,location,date,internalId FROM photolib_media WHERE active=1 AND (()) ORDER by id DESC
FATAL ERROR