A Database Error Occurred

Error Number: 1064

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 `proSort` asc LIMIT 30' at line 5

SELECT * FROM (`program`) WHERE `ProCat` IS NULL AND `ProID` != ORDER BY `proSort` asc LIMIT 30

Filename: /home/ainfct/domains/ainfct.com/public_html/models/main_mod.php

Line Number: 77