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 (18900,17114,5410,45051,44868,39676,17657,45262,44674,18430,13425,17335,17527,45043,44861,18572,45515,45561,18650,44766,18648,31354,43800,45567,18446,18185,18719,30986,44884,14622,44854,44835,44894,19057,16935,34194,44765,44851,30135,45518,5993,10402,17601,45072,18894,17278,17848,30963,6875,17835,18981,17703,45421,44848,17771,18286,17755,32454,37057,44764,44878,6862,44865,44640,18237,4686,44685,44768,45277,8753)
Unknown column 'np.person' in 'where clause'