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 (18301,18042,6875,6862,44866,44669,45042,44865,18688,18353,45518,18185,17848,45180,18652,3,45421,45517,45177,6782,5993,44869,44775,17527,44836,17351,14402,45072,24412,30986,18430,18427,44640,44765,28313,17771,18279,5410,44764,44711,4686,44856,44848,44768,18719,45043,9341,45346,44766,44867,18650,17904,17009,45229,44849,44854,44878,31354,37267,18894,45567,13922,17492,44687,44851,24438,44685,37057,18996,13988)
Unknown column 'np.person' in 'where clause'