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 (28530,44768,24438,44836,24441,39676,44851,18446,44765,17351,44849,44867,44669,18185,17092,45262,6609,44837,18981,17278,44866,44870,18430,17756,45072,3883,45421,17981,28313,45516,18688,17556,6862,44858,45229,37057,44861,8753,44687,44863,34194,16935,17657,44845,17904,30963,44674,5410,18794,18286,17848,18894,18900,44766,18996,17839,45567,17492,10402,36472,45177,24412,18719,18172,45518,44855,13,44685,17335,44671)
Unknown column 'np.person' in 'where clause'