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 (44861,44640,17351,44870,18042,4686,44867,44775,45517,9341,18185,3,17237,8753,16885,28530,44765,5259,17092,4765,44869,45567,44745,45177,18279,44739,44854,18900,44835,44685,30135,18794,5410,24411,17755,19057,44767,18301,45072,44671,24412,10402,45286,44858,44853,14622,44766,24441,44768,45229,44863,44845,30963,18688,43800,39676,30986,37267,13425,36472,45277,6875,18652,44866,45515,18719,18981,44884,18353,44711)
Unknown column 'np.person' in 'where clause'