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 (44875,44866,14402,17092,3,24441,6782,37267,16935,44689,18650,18648,45421,17527,5993,44853,45518,18353,45277,45515,44873,6862,44858,44848,17981,44856,45072,17756,45346,44869,44878,24438,18996,44674,13922,17703,3883,44868,6609,4765,37057,18572,19078,44640,28530,44768,18172,45567,36472,18427,44745,44851,17771,30963,45043,24412,45042,44762,30986,8753,44671,45516,17556,17835,44711,32454,45051,18719,30135,13)
Unknown column 'np.person' in 'where clause'