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 (18279,17848,17755,4765,17335,5388,36472,18301,17351,28313,18996,18172,28530,45051,13,4686,44863,16935,44685,44531,5993,24411,13988,30135,34194,37267,44766,44866,18688,18719,17556,44884,44867,18185,6782,45567,17092,18794,45043,18650,14622,17601,45518,44853,44764,19078,44894,31354,44861,44671,44856,18237,3883,17114,44739,44869,44762,39676,6862,17703,44765,44865,44669,8753,44674,9341,16885,44689,44858,17527)
Unknown column 'np.person' in 'where clause'