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 (6862,18719,17092,18353,13425,17981,17009,18301,22509,18446,45421,44768,17756,18185,45262,43800,44640,45516,5259,44531,18688,44775,39676,17657,13988,18430,17839,18794,13,44870,44745,34194,17351,37267,3,14622,5993,17848,24438,4686,8753,18572,44854,18900,9341,45277,44845,18650,44873,17601,45286,24441,4765,44856,44851,18894,44884,17904,44878,44767,18648,44855,17556,44848,32454,16935,17835,44764,45517,19078)
Unknown column 'np.person' in 'where clause'