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 (44764,32454,18650,44836,18353,37267,44745,6609,28530,10402,18185,44855,18981,44849,18996,24441,6782,13,44854,17278,44765,17839,24411,17114,44853,44869,8753,5259,18688,17848,44851,44878,44861,17092,3,18042,45043,34194,44640,44858,17601,44674,18894,45177,4686,5993,18237,19057,17492,44835,17237,45567,44739,45346,45072,44868,44866,36472,4765,17703,22509,44848,45517,37057,45421,18794,44671,17009,6862,28313)
Unknown column 'np.person' in 'where clause'