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 (45072,30986,10402,6862,44837,43800,44858,45051,18042,44849,17092,5993,44845,13425,45421,44767,5259,45042,28313,18430,18353,9341,45286,17351,13988,18572,44868,39676,16885,44836,8753,44861,19078,45229,18900,44878,17835,17556,45515,44745,44865,24412,45518,44848,17703,44739,45567,45262,37057,44875,24411,44856,44851,17904,6782,17527,14402,45177,14622,18427,28530,45043,44884,44762,17335,45516,44674,4686,5410,44855)
Unknown column 'np.person' in 'where clause'