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 (44875,18572,17835,45262,45051,44873,44867,45567,45286,4765,45421,18719,45180,17755,5259,17009,4686,36472,44849,18172,18688,5410,44865,44858,44762,43800,44766,9341,45515,16935,18652,6862,32454,18279,17556,18237,45042,17527,17335,17657,34194,44671,44711,44894,24411,44640,17771,45516,45346,45277,17601,45518,44835,6609,24441,18185,39676,44878,44861,30135,45229,44856,8753,18353,44866,13988,14402,17237,17756,44863)
Unknown column 'np.person' in 'where clause'