Notice: Undefined variable: order in /home/shemirps/ 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/ Stack trace: #0 /home/shemirps/ PDOStatement->execute(Array) #1 /home/shemirps/ DB->GetAll('\n\t\t\tSELECT\n\t\t\t\t...') #2 /home/shemirps/ Ads->getAds('WHERE `city` = ...', '1', NULL, '20') #3 /home/shemirps/ require('/home/shemirps/...') #4 {main} thrown in /home/shemirps/ on line 41