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 (18650,17848,44764,44853,24441,18042,44884,6609,44711,44858,44848,17755,17237,5993,45072,17703,44867,45262,44878,18286,17771,44835,44854,13,37267,5388,30963,17556,4765,44669,18794,45516,44849,18172,18648,44745,17839,30135,13988,44767,45518,17756,24412,34194,44861,44873,19057,44863,45567,18996,17278,17904,18981,44868,18688,44866,10402,45286,16885,44674,18279,44687,45051,44640,13425,45277,5259,45346,32454,17009)
Unknown column 'np.person' in 'where clause'