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 (13425,44674,17527,44671,44855,18286,44868,45286,30963,17556,45042,44765,44764,44689,18301,44870,18650,45051,6862,44849,32454,44858,44867,44766,44865,44875,17755,44711,43800,17351,24411,18237,45180,17492,17839,5410,17981,45517,28313,17703,18894,19078,4765,45516,6782,10402,17904,44836,34194,17009,14402,18719,18996,4686,17114,17335,3,45567,44767,39676,44873,17835,45277,5388,44863,13922,44739,18172,45072,31354)
Unknown column 'np.person' in 'where clause'