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 (17904,4765,3,45072,9341,24412,44835,31354,44767,34194,18430,44836,10402,18286,14402,44689,45043,44674,39676,44762,18042,44856,44873,44671,17351,18900,44531,4686,45346,18794,18446,44851,17556,17527,5993,45567,18648,44845,45277,17848,24441,44866,17492,18719,18185,45516,45177,3883,6609,44669,6782,44858,5259,44765,18172,18279,45421,30963,45517,17756,17981,36472,6862,44837,17771,44768,24411,44853,18301,44869)
Unknown column 'np.person' in 'where clause'