Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (17114,44766,17601,44856,44765,44745,44865,17904,17237,44835,17771,13,45051,31354,44863,44873,5388,44669,17755,44848,18981,18185,18430,44861,5259,6875,44711,17351,45277,45180,45515,22509,45286,17981,44867,45421,18172,13425,3,18996,17657,6862,13922,44853,4765,37057,17848,5993,10402,44870,45043,45262,44687,5410,18719,17527,17703,18900,45516,45177,18279,17009,24438,18042,45518,16935,18427,44762,44868,36472)
Unknown column 'np.person' in 'where clause'