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 (6609,45072,18900,44873,44878,37057,14622,45346,45177,17527,17904,44765,18301,44766,44669,17092,44764,18794,44851,17237,18981,13922,39676,44868,44848,18172,44640,45421,18650,44867,44687,22509,18652,17335,17601,44869,6862,44835,18996,34194,44884,45561,45042,5993,44768,44866,45518,44671,24412,6782,17756,17009,31354,18427,44836,18237,43800,18185,45517,4765,24438,17114,17835,37267,17278,17657,3,5259,24441,13425)
Unknown column 'np.person' in 'where clause'