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 (17092,13,18894,18652,6875,17703,30986,45229,44866,17237,44884,18650,5259,18301,17335,17278,18446,4686,45042,18900,44851,44861,18981,44762,45517,17114,18279,17904,6609,45277,44531,24412,45515,17527,13922,17835,44858,44848,4765,45051,44687,45516,28313,18042,44767,17756,17351,44875,18185,45262,19078,8753,44853,31354,44689,17009,39676,17601,44863,44867,45567,44765,24438,44854,9341,17771,36472,37057,17492,13425)
Unknown column 'np.person' in 'where clause'