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 (17839,45051,45517,44669,18894,13988,18427,31354,6782,4686,45561,44868,16885,45515,5410,18185,44836,17009,45516,44768,17351,44873,45346,18353,18900,44767,9341,18279,18650,44685,17601,17092,44711,44674,19078,17114,17904,18652,3,13425,30986,17981,6875,5993,45262,37267,18719,18286,18648,45518,4765,44851,45177,6862,17756,30135,44765,18572,6609,44762,10402,17703,45286,24412,44687,17835,45421,24441,44835,43800)
Unknown column 'np.person' in 'where clause'