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 (44854,44837,44865,24412,44640,45286,18648,17335,39676,45515,37267,44848,18430,34194,18996,44768,44711,18172,13425,3883,44875,44835,44851,44674,44866,17657,44878,18794,44764,17601,36472,18719,18185,45277,19078,17755,44765,18301,18652,6862,17278,24411,17756,30963,19057,45229,4765,13922,45262,44868,45043,44867,4686,45072,17492,45561,44849,16885,30986,16935,44671,17527,17351,17981,17237,45177,45518,44836,18894,44669)
Unknown column 'np.person' in 'where clause'