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 (45180,44851,5993,44884,3883,17527,6609,44866,30135,6875,44669,18237,17703,44711,44867,18172,17981,18572,18894,44858,17839,17756,17335,19078,24438,45262,44775,17755,17904,17556,13988,45277,45286,30986,44854,17114,17351,44767,18286,44868,44894,45229,17848,18719,37267,18794,43800,44870,24411,44640,17009,44837,9341,44863,44849,18650,44739,44845,16885,18279,24412,18446,24441,44865,44861,45518,18430,10402,45517,44878)
Unknown column 'np.person' in 'where clause'