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 (17703,45180,45229,44836,17092,45561,18900,44869,30135,44854,18430,18427,5410,17848,44856,44865,44868,45277,24412,44766,17755,44867,8753,18185,32454,44894,5993,45286,18172,45517,44853,18719,13988,36472,18572,39676,4686,44875,3883,44669,45072,44845,19078,44878,45346,44674,18301,6875,16885,18650,14622,44851,44870,17835,17527,44764,30986,44767,6862,17657,44745,17335,24441,44762,17756,31354,44835,44689,18688,5388)
Unknown column 'np.person' in 'where clause'