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 (17981,18237,24411,5410,37057,44863,18648,17839,45042,18353,44845,13988,17351,32454,44861,18688,44745,24412,45561,17556,17756,45043,18185,13425,44878,30963,16885,17009,17755,44856,45518,18427,14402,44531,44764,17527,18996,17904,8753,18430,44849,44836,44894,22509,44765,17835,37267,18301,17601,44762,34194,45346,45286,4686,5259,44674,16935,18650,18446,44767,45421,44837,17492,45567,45180,18286,17771,44867,39676,18900)
Unknown column 'np.person' in 'where clause'