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 (18430,45561,30135,5993,17771,18301,45515,22509,45516,17657,17237,3,5259,19078,45277,19057,44875,45346,16935,18794,44873,24412,17981,45177,45043,44884,18981,13922,44674,44854,28313,18237,18172,5388,34194,45286,30986,4686,44856,4765,37267,44855,44867,24438,44711,44764,28530,18719,17335,44765,17527,36472,44866,18353,45229,45042,17092,44762,17848,44868,45180,6862,6782,44531,18185,18652,18648,44861,18042,16885)
Unknown column 'np.person' in 'where clause'