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 (18427,16885,45043,18650,18572,37057,9341,18996,45051,18652,44866,44837,18981,22509,45229,45516,44685,18279,44835,6609,44766,18042,45567,8753,17114,37267,28313,34194,44745,6782,17904,17771,17657,18719,44863,44878,44865,44711,30963,44531,44884,32454,4765,18185,44768,17092,44861,44855,18894,17335,44854,43800,44671,17278,17601,45277,18648,45180,17351,44873,30986,18430,17009,39676,17981,45517,5410,5388,18172,44853)
Unknown column 'np.person' in 'where clause'