"Unknown column 'app_show_on_top' in 'where clause'" :: SELECT SQL_CALC_FOUND_ROWS A.*,
C.clinic_status, C.clinic_site, C.clinic_code, D.city_uid, D.city_id, C.clinic_vip, C.clinic_covid
FROM smrt_apps2018 AS A
LEFT JOIN smrt_clinics AS C ON A.clinic_id = C.clinic_bitrix_id
LEFT JOIN smrt_city_db AS D ON C.clinic_city_id = D.city_id
WHERE app_status = '0' AND app_show_on_top = '0' AND app_year = 2018 AND app_group = '2' AND app_net = '1'
ORDER BY app_rate DESC, app_date LIMIT 0, 50