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 (17351,28530,44768,32454,44851,17114,18900,18446,44640,18650,44767,17755,45286,17601,44894,44765,6609,44865,13922,17092,44855,45517,5388,45567,44671,4765,44762,18301,28313,39676,17237,44849,44685,44884,44711,3,17703,17527,44835,44669,17009,45177,19078,6782,31354,16885,24441,24412,30135,44869,8753,45346,44867,30963,44863,18794,17756,18996,18648,17904,17835,18652,18042,44848,18719,44866,44687,17981,37267,5259)
Unknown column 'np.person' in 'where clause'