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 (44768,45518,45229,22509,44836,44873,34194,18900,18430,17351,36472,14622,5388,44854,17114,6782,17703,44671,45346,18652,17756,18794,17904,5410,44687,4686,18185,13988,45180,45567,13,44764,45042,45043,45286,18427,44711,44745,18279,18237,17835,13425,18572,17755,24412,5993,44851,44837,17848,5259,24438,9341,30135,17237,19057,44894,17527,32454,18286,17278,24411,44861,30986,18996,44685,19078,44878,44674,18042,17009)
Unknown column 'np.person' in 'where clause'