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 (45346,24411,44775,44868,45561,18185,39676,37057,31354,3883,45051,17351,13922,44855,44894,45180,18286,6782,9341,17835,45042,44875,44669,18900,24412,18652,45421,44865,44869,44866,10402,18172,17527,44870,45517,44765,18981,44858,19057,6875,22509,24441,17703,45277,17839,8753,44867,44854,18719,4686,44685,34194,44766,18894,44873,5388,44768,44531,44863,3,17009,18237,17601,17092,18427,17237,44837,18042,44849,5410)
Unknown column 'np.person' in 'where clause'