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 (39676,44865,18794,16935,17755,44856,18688,18301,45177,17601,18996,10402,44868,18237,8753,14402,45421,24441,18719,44894,6875,44854,6782,44875,44671,44685,18430,45051,44765,45517,30135,17703,45262,44767,44531,28313,17556,3883,18427,44873,44762,44687,44835,13425,37057,24438,5993,44867,18894,45042,30986,44861,13,44745,18172,44764,24411,45516,18353,17237,6609,45567,45346,24412,13922,17848,44866,45043,18572,45072)
Unknown column 'np.person' in 'where clause'