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 (10402,34194,45177,44671,18648,5259,13988,45346,45518,44854,44849,44835,44855,44765,18900,45561,44766,44640,17092,44853,4765,45567,44848,18794,5410,45277,45517,44687,17527,17839,13922,44870,18652,17556,44845,17981,44861,16935,37057,22509,44863,44685,44669,45516,28313,24412,37267,45051,14402,8753,44869,30986,45042,18650,17335,6609,36472,18172,17114,18688,44873,5993,19078,45515,44851,31354,45043,44866,4686,17755)
Unknown column 'np.person' in 'where clause'