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 (18894,18301,9341,45262,44767,44845,45051,17755,6782,18427,6609,44856,28313,44851,17009,13425,13988,5993,24441,18286,17237,45421,44765,18446,44762,17335,22509,17556,44849,44878,18172,37057,45516,5388,24411,18648,18794,44837,45180,44858,18996,44866,6875,44869,17657,17756,45518,17492,44863,8753,18652,17351,17703,24438,45043,30963,17981,44894,6862,28530,14622,18042,44768,18185,44671,44854,44855,10402,17904,18353)
Unknown column 'np.person' in 'where clause'