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 (17839,45421,18446,18430,37267,18900,18894,44894,44861,44837,18172,34194,18794,17114,45516,45518,44669,5259,44884,44856,14402,44775,37057,45051,4765,17601,44836,19057,9341,24441,18648,32454,45180,18650,17756,17657,17492,44764,44845,5993,36472,45042,45286,18719,17556,8753,13425,6782,17755,30986,44767,44858,44765,44875,44671,17848,45072,18286,44866,44674,44869,18279,18996,44855,44711,45262,17527,3,22509,3883)
Unknown column 'np.person' in 'where clause'