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 (45043,44762,13922,36472,9341,37267,45051,43800,44669,24441,44855,44851,17351,17278,44765,44878,28313,4686,13,45262,32454,17092,45567,44767,18894,45177,45346,45229,17755,39676,44671,44867,44894,45518,18279,30963,44531,5993,44856,6782,28530,45561,3,13988,18650,44869,17009,18237,18446,17904,44739,17981,18427,44674,18286,17114,18430,44858,18172,24438,17335,19078,16885,6875,18301,17771,17835,17556,34194,45286)
Unknown column 'np.person' in 'where clause'