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 (18719,17839,6862,18996,17771,44848,44851,22509,36472,8753,3,17278,45346,34194,45043,17527,17556,17114,44861,17657,44766,13,17092,18648,44745,31354,45517,37057,5259,44875,44669,5993,44835,44884,45180,28313,17703,44762,24411,13922,17904,18981,44856,45567,18900,3883,44685,28530,4765,44878,44837,44674,45229,30986,16885,44775,18430,30135,44849,13988,18286,18237,44866,45286,18353,44767,45518,44671,17009,17237)
Unknown column 'np.person' in 'where clause'