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 (45286,45051,17351,44858,44867,44851,4765,18794,6875,45262,44878,44836,18996,45518,45567,17556,44775,44873,19078,5410,44765,45561,45043,45515,17835,18237,32454,28313,18427,6862,44869,18185,17848,44870,18981,44671,37267,31354,44837,39676,9341,45277,17092,13922,30963,37057,17278,44845,17839,17755,44768,45072,44854,45229,5259,18894,17904,18353,18042,18648,17527,45180,44674,34194,44894,18446,18430,16935,44868,30986)
Unknown column 'np.person' in 'where clause'