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 (44739,18185,17237,44766,37267,18286,30963,44894,24438,19057,16935,18572,18042,18650,17771,44869,44854,45177,45277,44767,18301,24412,17703,44768,18279,45561,30135,4765,44837,9341,18981,34194,24411,44640,14402,45286,44868,3,18652,44674,44849,44845,44865,32454,44861,17756,5259,17351,24441,17527,45515,13425,17835,14622,44848,17904,17092,44875,45262,17839,44866,13988,45346,28530,18648,13922,17848,6875,5410,18996)
Unknown column 'np.person' in 'where clause'