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 (43800,17009,18430,17848,16885,45277,18286,16935,17492,45518,17835,24438,19057,45346,17755,44878,18172,18996,18719,18894,45516,45567,44764,17981,45262,6609,9341,13988,44849,18237,17657,4765,44875,18185,24441,19078,28530,24412,30986,44856,44765,45177,17703,44848,3,45180,45421,6862,5410,45051,44868,44851,44775,3883,44689,6875,30135,30963,44674,44835,8753,44858,18572,17756,44837,44894,14622,6782,18279,18688)
Unknown column 'np.person' in 'where clause'