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 (44765,44868,45561,44531,45262,45177,17756,19057,44775,13425,45517,18688,28313,44851,18648,17601,44866,17981,44869,13922,44875,44894,18172,45346,6862,17351,45421,44689,44861,44867,44762,44766,44848,18894,34194,4765,17848,18286,5410,31354,17092,18900,44674,17335,45072,44873,24441,10402,44739,44671,44856,45229,17556,32454,30963,44878,18996,3883,37267,44870,45567,18652,44853,44767,44768,17839,44855,19078,17904,4686)
Unknown column 'np.person' in 'where clause'