Townmore
SELECT SQL_CALC_FOUND_ROWS * FROM ( SELECT A.*, GROUP_CONCAT(C.filename) as photos FROM townmore_listings.listings as A LEFT JOIN townmore_listings.listings_photos as C ON A.id = C.listing_id WHERE A.endtime >= 1772686539 AND A.deleted = 0 AND A.publish = 1 AND country_alias = '' AND place_id = GROUP BY A.id ) as tbl ORDER BY title ASC LIMIT 6 OFFSET 0
Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY A.id ) as tbl ORDER BY title ASC LIMIT ' at line 18 in /home/townmore/public_html/include/database/mysql_class.php:75 Stack trace: #0 /home/townmore/public_html/include/database/mysql_class.php(75): mysqli_query(Object(mysqli), '\r\n\t\t\t\t\t\t\tSELECT...') #1 /home/townmore/public_html/admin.townmore.com/include/class/pages/search_results.php(1882): MYSQL_DB->query('\r\n\t\t\t\t\t\t\tSELECT...') #2 /home/townmore/public_html/admin.townmore.com/include/class/pages/search_results.php(2704): Search_Results->gen_display_content() #3 /home/townmore/public_html/admin.townmore.com/include/class/pages/search_results.php(3771): Search_Results->gen_display() #4 /home/townmore/public_html/admin.townmore.com/include/class/pages/profiles_page.php(973): Search_Results->gen_module('Search Results') #5 /home/townmore/public_html/admin.townmore.com/include/class/pages/profiles_page.php(1493): Profile_Page->gen_layout_arr(Array) #6 /home/townmore/public_html/admin.townmore.com/include/class/pages/profiles_page.php(301): Profile_Page->gen_layout_content(Array, 2, 0) #7 /home/townmore/public_html/admin.townmore.com/include/class/pages/profile.php(199): Profile_Page->gen_display('index.php') #8 /home/townmore/public_html/core/search/index.php(167): Profile->gen_body() #9 /home/townmore/public_html/index.php(140): require_once('/home/townmore/...') #10 {main} thrown in /home/townmore/public_html/include/database/mysql_class.php on line 75