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 (5388,18981,44858,14402,13922,44768,44764,44856,3,17278,17755,18185,16885,24438,44873,44835,45229,44739,44861,17527,44853,13,18301,18894,17335,32454,44894,44837,17835,6875,17009,5410,18042,45517,44854,45286,44884,18279,18650,24412,44868,44762,44765,8753,18427,18237,44685,44869,17981,18794,45072,45346,45177,31354,19078,18996,9341,45515,44867,44865,18286,44845,18652,44674,34194,18172,44849,17492,17904,28313)
Unknown column 'np.person' in 'where clause'