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 (17335,5259,30986,18446,17703,18648,30135,9341,44674,44851,18794,16885,44711,44531,24438,17848,37057,17755,18427,17904,17278,3,17771,34194,18237,45042,43800,44884,44745,45051,44775,44865,44837,45515,18652,4765,5410,17981,28313,44767,44766,14622,16935,6875,18430,44854,18650,44894,44861,19078,24412,14402,17237,44869,44669,10402,18301,17527,44671,32454,17756,44863,13,44867,44764,28530,18572,45421,44856,45043)
Unknown column 'np.person' in 'where clause'