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 (45177,13,44671,44866,44853,44868,44711,45421,18652,28313,44764,44848,17351,45346,19078,17601,18172,45043,17492,4765,36472,13988,16885,32454,14622,18237,28530,44685,17771,6875,6609,44894,45286,13425,3883,14402,17335,18719,13922,37057,34194,17114,17657,44849,44867,44766,6782,44855,18894,4686,44856,45277,17981,16935,45229,17756,43800,39676,24441,10402,18900,44858,44739,18572,24412,17904,17703,44836,5410,18279)
Unknown column 'np.person' in 'where clause'