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 (44767,44894,45567,45517,45286,17756,17278,6609,17601,44765,17527,44849,17755,39676,17556,44863,18446,6862,44865,45516,16935,44869,17835,44835,17114,44674,19057,5410,18900,18286,4686,37057,44873,17839,36472,44764,44640,44848,17492,18719,18279,44878,18427,18237,18981,10402,19078,18996,44531,18688,18301,45072,44875,44858,17904,14622,44856,30135,44870,34194,44867,17848,13425,13,18894,44884,22509,45421,44868,45043)
Unknown column 'np.person' in 'where clause'