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 (6862,18430,44851,45346,44866,45421,45229,45518,18652,18279,44685,44853,17756,18172,44878,17092,17703,44849,24412,18572,45051,44689,17492,44671,18650,10402,17904,43800,18900,44531,18353,45177,16935,37267,18427,18894,45180,44775,44856,44745,18185,44894,13,44674,44867,45286,45042,17981,30135,44848,18981,44854,19057,45561,17527,28530,17657,45517,45043,44767,5993,17848,44861,6782,17351,18301,4686,24411,44640,37057)
Unknown column 'np.person' in 'where clause'