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 (9341,30135,18427,18996,6609,44845,5259,17009,6782,34194,44764,6875,31354,44531,44866,18185,28530,45262,18650,14622,44849,19057,17237,4686,28313,39676,44851,4765,45517,18652,44884,44861,44775,44739,37267,17556,18301,24438,44867,44711,17492,18648,13,44671,44837,5388,17981,44858,44856,44894,17703,17335,44640,44869,18688,17904,44878,24411,14402,17848,44854,5410,45518,45229,44669,44689,16885,13922,45286,44766)
Unknown column 'np.person' in 'where clause'