Invalid query: SELECT DISTINCT tComments.*, tCompanies.name AS company_name, tCompanies.url AS company_url FROM companies_comments tComments, companies tCompanies WHERE tCompanies.city_id = 8 AND tComments.company_id = tCompanies.id AND tComments.company_id != 5093 GROUP BY tComments.company_id ORDER BY tComments.date_send DESC LIMIT 5