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 (5993,5388,44531,34194,6609,18894,5410,17237,6782,13425,18427,28530,44870,44853,45346,44873,17981,17756,45042,17904,18301,44848,30963,44867,45515,44671,45262,17601,18996,44875,44861,17771,14402,32454,44765,45421,17009,44884,45567,19057,4765,44837,17848,44711,44768,44669,45051,18042,44894,18286,18430,45561,18652,44865,44868,45516,30135,18185,45177,44766,30986,13988,44869,18981,16885,18648,44775,45517,19078,24412)
Unknown column 'np.person' in 'where clause'