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 (10402,28313,44764,18996,44856,45262,18301,44531,13,17835,44861,44745,18650,18427,31354,19057,30986,17009,44739,6609,24438,6782,18237,17278,17981,44851,18900,5993,17237,45421,45516,18652,17657,44865,5259,44868,44848,45346,17335,18446,45515,3883,4765,45177,44869,4686,24441,44845,44867,18894,45042,18172,44863,17601,5410,22509,44878,18042,43800,36472,44866,18279,44853,18719,44854,37057,44875,44835,17839,37267)
Unknown column 'np.person' in 'where clause'