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 (45515,6782,44865,44849,45517,37057,6609,14402,18719,24441,4686,36472,17981,44739,5993,45277,17278,19057,17114,44863,30986,18279,3883,44674,34194,17703,45043,17556,18648,6862,39676,45518,18900,43800,44837,17351,44894,44766,45561,13988,44762,44858,18996,18650,28313,17527,44875,17601,14622,45346,45177,16935,17335,44868,32454,17009,44867,18794,44855,13425,17771,4765,44856,45072,31354,44775,44671,17839,24412,18430)
Unknown column 'np.person' in 'where clause'