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 (44685,18996,17703,44767,44869,18719,19057,36472,6782,44837,44669,45072,44640,44870,18279,3883,44711,45043,6862,18894,44849,44845,17848,18237,4686,44866,44867,17756,45518,44848,17009,18794,44861,17601,18981,5259,13,13425,44894,18301,14402,17092,16885,43800,6875,24438,44868,18652,45177,18172,28530,37267,45262,44745,18427,18900,13922,44858,18286,17335,24441,45567,44856,44687,44855,9341,45286,44836,44853,19078)
Unknown column 'np.person' in 'where clause'