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,6862,45072,39676,24438,3883,17601,44894,17092,17839,18981,44837,44669,44873,44884,44855,37267,3,13922,9341,30963,30135,13,44866,4765,10402,44856,45229,34194,18353,44766,18719,44745,28313,44674,18301,45567,13425,45277,44867,18652,18648,18650,18996,17848,17335,19078,36472,18237,44835,22509,44739,45346,17351,45051,6609,17756,5993,18279,44845,17114,17492,43800,18430,17527,18446,44762,24441,17771,45286)
Unknown column 'np.person' in 'where clause'