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 (13922,44767,45229,18688,32454,18996,17492,24412,45277,44894,44849,18900,30986,44845,45042,28313,18981,17556,17771,22509,44768,30135,17755,18650,4765,24441,4686,13988,45286,6862,17703,44669,37057,17114,5388,45177,45180,17009,44745,19057,44868,18572,45051,16935,18042,17981,18719,6875,44869,34194,10402,17351,39676,17839,18446,44762,45518,28530,8753,5993,5259,18430,18894,44854,44739,44674,44878,36472,45515,44837)
Unknown column 'np.person' in 'where clause'