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 (45516,45517,17335,44768,44848,24411,18237,34194,37267,18279,36472,45421,44765,13425,16885,18894,18981,44868,18430,44878,17835,44767,44689,44711,17492,44870,4686,24438,45561,44884,44835,18996,44849,44531,17114,45518,44894,18688,44640,18572,44867,18427,44745,19057,17904,18286,44837,17351,45177,18652,18172,17839,24412,44875,30135,44762,44866,44845,18719,18794,5388,45180,44669,45277,3883,17527,45072,22509,45262,28530)
Unknown column 'np.person' in 'where clause'