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 (45516,17981,17351,45072,44687,13425,17755,18650,18900,18427,18981,24411,8753,44868,45515,45517,44863,18648,44685,30135,44669,24412,44856,44853,44671,37267,9341,5993,17335,45567,44640,45262,44845,18894,44861,44767,17492,44894,45180,34194,17009,44858,18353,18172,18572,18794,28530,30986,18996,44745,44869,44766,14622,4765,18042,44711,16885,44837,28313,19057,17703,45561,44854,14402,44878,44836,18185,17114,44851,44689)
Unknown column 'np.person' in 'where clause'