South African Cultural Observatory

query result error
No: 1064
Msg: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY docorder' at line 1
SQL: SELECT docid,catid,filename,description,docorder,lastmodified,title,comments,imagename FROM cmsdocuments WHERE catid = ORDER BY docorder

query result error
No: 1064
Msg: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY docorder' at line 1
SQL: SELECT docid, doccatname, datecreated, docorder FROM cmsdocumentcategory WHERE parentid = ORDER BY docorder