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,45421,18652,44854,18427,30986,44861,22509,17601,30963,44767,19078,8753,6862,18279,44671,45346,17835,44674,4686,5993,44835,17981,24441,44669,44878,44894,45043,17556,17756,17092,44531,45072,44863,18042,5388,6782,18996,44768,44869,44868,17904,18900,17009,17848,17335,44775,44855,45042,13922,45518,13425,45180,18301,18648,3883,18981,37057,44685,17351,14622,37267,17771,44867,45229,44764,44856,18894,36472,6875)
Unknown column 'np.person' in 'where clause'