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 (17009,45561,5410,17492,45516,13922,18042,17848,5259,13,17278,44745,18446,18719,44671,44849,18237,44875,18572,45262,13425,36472,44873,45051,44669,44768,30986,18981,22509,17703,8753,14622,44855,44764,44837,5993,17771,13988,18172,3,44856,45421,44866,17755,44863,44766,45567,44868,4686,44853,6875,18430,17835,44878,17904,19057,18286,17335,4765,44640,18900,45072,17114,17092,6782,10402,18185,9341,45515,14402)
Unknown column 'np.person' in 'where clause'