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 (18237,45180,8753,17092,17601,44745,17278,18172,13,45043,30135,17771,18279,45516,18572,45229,3,44764,24438,5388,45421,24411,44870,44867,18981,44848,45177,9341,30963,18185,34194,18996,45567,17703,37267,44875,32454,44845,19057,18688,36472,6875,17657,17981,4686,44861,44869,45051,18446,13988,18648,44853,44854,37057,44674,4765,39676,24441,45072,18353,6609,45518,18430,44858,17009,44856,44866,14402,45515,18900)
Unknown column 'np.person' in 'where clause'