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 (44835,5993,24412,24441,45421,17835,17848,17756,44854,45051,44849,18981,17527,17601,44765,18894,13,44856,18430,17092,17556,44873,44845,17771,44865,17703,39676,13988,44848,18286,44851,30986,45515,24438,3883,17839,17237,18353,44866,45277,17114,44878,45516,6875,28313,44640,44863,44836,17278,44671,37267,30135,6609,44870,19078,44869,6782,31354,17335,18650,17981,44674,45042,44768,18427,44894,18900,18648,45286,45517)
Unknown column 'np.person' in 'where clause'