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 (13988,45516,6862,17237,45561,18237,44640,6875,45346,24438,45180,13425,44865,30963,18572,44863,44745,18353,44853,17771,5259,4686,24411,45229,18650,18900,45072,32454,17835,17492,24412,5388,44835,44894,45518,8753,17335,18301,44875,44531,34194,45517,44674,10402,45262,30986,44765,44868,28313,36472,17904,44878,45421,18996,44669,30135,18427,18185,45042,44762,17657,44866,18981,6609,17755,17703,44861,17351,17839,3)
Unknown column 'np.person' in 'where clause'