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 (9341,30135,18279,4765,17755,18301,45515,44835,45286,44767,31354,45567,28313,44837,43800,45177,44865,18172,44854,44858,18688,18650,45262,17092,30986,45517,44884,5410,24412,44685,16935,6875,44867,30963,44855,45518,17278,18894,37057,18648,44671,36472,44851,17657,18185,13988,5259,13,18446,19078,37267,44775,44856,17703,44873,44766,45229,6609,44849,44768,17335,18981,44866,17527,34194,45516,45051,44836,18572,44894)
Unknown column 'np.person' in 'where clause'