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 (17351,17835,9341,17009,17981,4686,45229,18042,32454,45042,22509,44854,44685,17657,44767,18430,45346,44739,44869,18794,45517,45567,16885,44867,18185,18301,17114,18237,18894,13,17278,37057,17492,18286,17335,44671,18719,17237,44765,17755,44861,45043,37267,45277,45515,44837,45072,6862,44766,44764,6875,18650,17092,24438,18279,13988,18981,19057,3,44835,16935,44849,28530,14402,14622,44711,18353,44845,17527,24441)
Unknown column 'np.person' in 'where clause'