Unknown column 'O.l' in 'where clause'countAds Query: SELECT count(O.id) as idcount FROM oglashr_web.oglasi as O, oglashr_test2.zanemariRjecnik1 as R WHERE O.sub = R.id AND R.it_safe='appartamento-al-vendito' AND O.l = '' AND O.kateg = 8