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 (18900,45177,44764,22509,18981,36472,45518,17114,18650,39676,18794,44849,44861,18894,44855,6875,18719,13922,18430,45346,44767,44870,18688,18279,18572,24438,44836,44867,17009,45277,4765,44851,45561,18652,43800,17703,18427,3,18172,45567,13,18286,44766,44531,44775,6609,45262,17835,44674,5993,19078,17756,30963,17335,44868,34194,44689,8753,5259,17092,45051,18446,18996,44687,44853,44869,44765,45516,44768,17839)
Unknown column 'np.person' in 'where clause'