Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (18719,5410,3,10402,44766,4686,24411,18185,17556,18172,17278,44689,28313,13425,44848,17114,17756,19057,44878,44865,18900,44711,44854,44531,44853,24441,17009,44767,45515,4765,44671,18446,31354,17492,44856,44855,18353,17601,44685,44870,44768,45516,17981,44869,44764,6875,45043,18650,45346,44868,19078,32454,45561,17771,17703,44837,18996,9341,44858,6782,45567,16885,44884,44674,18042,44745,3883,43800,17848,30963)
Unknown column 'np.person' in 'where clause'