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 (44855,44739,45051,44869,18794,44848,18900,19078,18286,18996,44845,4686,17835,13,3,31354,45286,6782,45072,18237,44775,18172,45561,6875,45043,45515,44689,34194,17556,43800,44894,17703,5993,45180,44867,45518,44837,17839,44870,5410,44856,17492,44640,44873,45177,44853,9341,45567,18185,10402,44868,17848,44851,17904,45516,17527,18279,19057,18042,18981,44687,17755,18446,17335,44711,44858,44836,44669,16935,32454)
Unknown column 'np.person' in 'where clause'