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 (13922,44764,45567,14402,18719,17335,17492,45561,13425,18279,37267,18172,44884,18894,44845,44869,44745,44849,24441,44856,44640,44870,24412,4765,3,30963,44767,18648,17556,45042,17237,45515,45072,16935,45180,44762,45346,17755,44835,44867,45516,34194,44775,13988,44739,18353,44851,45517,17839,36472,17835,5410,44855,6609,44689,44765,17527,45518,44866,30135,18185,44669,24411,44868,16885,18301,44894,39676,17904,18996)
Unknown column 'np.person' in 'where clause'