There was an error running the querySELECT * FROM pages WHERE (url = 'registerCompany' OR SHA1(url) = 'registerCompany') AND (companyID is NULL OR companyID = ) order by companyID [28You 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 companyID' at line 1]