Notice: Undefined variable: order in /home/shemirps/adoos.co.uk/pages/classifieds.php on line 114

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 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 'LIMIT 0, 20' at line 16 in /home/shemirps/adoos.co.uk/classes/DB.class.php:41 Stack trace: #0 /home/shemirps/adoos.co.uk/classes/DB.class.php(41): PDOStatement->execute(Array) #1 /home/shemirps/adoos.co.uk/classes/Ads.class.php(45): DB->GetAll('\n\t\t\tSELECT\n\t\t\t\t...') #2 /home/shemirps/adoos.co.uk/pages/classifieds.php(114): Ads->getAds('WHERE (`a`.`tit...', '1', NULL, '20') #3 /home/shemirps/adoos.co.uk/public_html/index.php(65): require('/home/shemirps/...') #4 {main} thrown in /home/shemirps/adoos.co.uk/classes/DB.class.php on line 41