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 (17755,22509,44867,17771,17351,18042,44689,10402,18185,45262,45515,17092,37057,18279,28530,3,17756,44861,44854,17335,17703,24438,5993,14622,44671,18996,44765,44836,18900,45567,18446,44768,44764,45043,16885,44870,44766,44866,6875,24411,44531,44868,45286,18572,30963,44856,17657,4765,3883,44762,18427,45180,44837,45518,18430,17527,8753,37267,18286,44884,13,44869,44851,44835,17981,34194,44894,45517,18301,17848)
Unknown column 'np.person' in 'where clause'