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 (6609,17981,17492,44867,18172,22509,18996,4686,17278,13922,18286,18648,44845,44767,44640,44837,44869,44739,24412,16885,5993,18981,16935,44861,44775,45515,45346,17335,18279,8753,37267,44884,45518,18900,45042,19057,44868,18794,45567,17556,17009,19078,44878,44848,39676,17848,17237,44856,44762,44858,17601,34194,44836,18353,6862,44685,17092,18185,44865,17351,18237,45286,18719,18650,13425,45561,45180,17527,13,44531)
Unknown column 'np.person' in 'where clause'