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 (17092,13922,45518,3883,44894,44878,44865,9341,14402,18042,17009,44854,17601,17904,30963,18794,17839,17755,44765,17278,17335,17114,18652,18688,17703,18650,13,44866,18286,45180,44875,45346,18900,44868,44863,4686,44851,34194,6609,17527,44767,44848,45042,45515,45051,37057,43800,5410,44764,44873,28530,17657,17771,17492,44687,18301,18185,3,44768,44531,44775,39676,18981,44861,10402,18353,8753,44855,17237,45286)
Unknown column 'np.person' in 'where clause'