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 (30963,17703,44766,44869,24411,44854,18042,45516,17848,45229,18286,44775,44866,44745,44669,44848,45346,18652,17237,44868,18427,17335,44640,44711,6862,45072,18446,44863,45517,44870,45043,39676,13425,18353,45262,18719,16935,18996,18430,24441,44689,44851,44764,13922,18572,44855,45180,28530,17556,44671,17981,44849,30986,18981,30135,5259,34194,17839,18185,3,6609,17092,17756,45515,44845,14402,44884,18794,18237,13)
Unknown column 'np.person' in 'where clause'