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 (44878,45229,45515,44856,19057,17492,44685,44837,17009,13425,44867,45262,45277,44640,3883,6875,45043,44865,18286,30963,18719,24411,39676,44854,18650,17237,45177,44884,18172,8753,19078,44687,18427,45516,18185,45517,17703,44861,13,44869,45421,44836,17981,18981,18301,28530,18652,5410,30135,18894,18648,17756,45286,36472,44762,18794,5388,18237,16935,44767,28313,44711,17904,37057,22509,44849,44848,17755,44866,18042)
Unknown column 'np.person' in 'where clause'