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 (45262,45567,24412,45516,18427,30963,17601,18279,31354,44837,17755,45518,44863,14622,45517,18042,19078,45042,4765,45421,45229,36472,44894,18688,4686,24411,18430,8753,44873,44845,39676,44858,44853,10402,5410,43800,17092,44687,45177,17351,44689,44765,18446,45043,18794,18172,44764,34194,44685,17904,24441,17835,17981,45286,44674,32454,5259,17114,44531,30986,30135,44865,45072,44849,9341,24438,44762,17527,44861,18719)
Unknown column 'np.person' in 'where clause'