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 (44853,30135,6875,43800,44739,14622,18185,44836,44685,44775,13922,44856,45518,45277,45180,44765,44851,44768,17009,17771,18427,18353,44865,18279,34194,18430,44835,36472,3883,17601,17755,17278,9341,17092,39676,45515,44687,37267,18650,17351,45421,44894,45517,13988,44764,17237,45051,44866,17527,6782,5259,45229,28313,5410,22509,18042,44669,45262,44873,18446,18981,24441,45561,24438,45346,44531,44849,4686,17904,19057)
Unknown column 'np.person' in 'where clause'