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 (17237,9341,24438,17657,44766,44674,45051,8753,3,44861,44851,18286,13425,24441,5410,44865,5993,44870,18650,28313,17835,17703,44685,18719,13988,44856,44687,44875,18996,44739,45072,44640,16935,45561,17904,17335,17351,18446,44894,18237,18430,44745,43800,18427,17278,44868,30135,17601,44853,45517,44855,45346,44711,34194,44764,17556,18042,32454,45421,44768,45516,6782,44849,18185,19057,16885,44765,44869,44836,18981)
Unknown column 'np.person' in 'where clause'