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 (44855,18794,30986,17092,45229,18981,39676,4765,45516,18172,44671,3,18353,17981,5993,17848,17657,24441,24438,45043,34194,44858,45051,44765,32454,28530,44878,18446,44873,44775,4686,6609,18648,44739,13988,31354,3883,44836,37057,5259,45561,17771,45515,45277,44711,44851,17335,16885,44848,18688,19057,8753,44845,44856,6782,18572,44866,9341,24412,44674,45286,44531,44854,17703,18430,17114,44689,6862,44861,30963)
Unknown column 'np.person' in 'where clause'