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,17657,44845,45517,44671,44837,31354,17009,18996,44861,44848,36472,44854,24412,44868,45421,18652,45051,18650,17835,18900,17848,17092,44849,17527,17981,45262,18719,30135,45072,44836,5410,44865,10402,44765,45043,18301,13425,18185,16935,18286,28313,19057,39676,30963,44739,44851,45516,5993,17904,37057,4686,13922,18981,18894,17237,4765,17755,44878,44762,18794,18430,44745,17703,24411,45286,14622,44866,44640,44863)
Unknown column 'np.person' in 'where clause'