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 (45516,44687,17703,24438,13,44867,18430,18279,44853,17756,45561,44685,44835,17771,18996,44745,45229,6875,17904,44640,45277,17981,6609,10402,17492,18894,45051,44837,17092,19057,14622,44764,24412,18900,18185,17657,44739,45421,37267,44669,18172,44868,18650,18427,32454,18237,44858,18286,28530,44689,44768,44869,17848,45286,17335,18446,18301,45177,34194,37057,6782,44873,44765,18981,17601,18794,18719,31354,18652,44674)
Unknown column 'np.person' in 'where clause'