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 (44870,44853,18446,45042,44768,45072,17601,36472,44767,30986,30135,18301,18996,13922,45421,45517,44766,44669,28313,4765,44861,44868,34194,44689,14622,45262,16935,44640,5410,45567,44762,17092,44849,44854,17835,44687,18286,5259,44856,44858,10402,3,45229,17335,18650,22509,44894,17771,9341,17839,44867,44835,18430,44855,24438,6875,24411,18652,16885,5993,44764,18237,44674,39676,17527,44865,6782,17237,13988,18279)
Unknown column 'np.person' in 'where clause'