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 (18996,18042,44775,32454,44866,6862,30986,45177,44845,45262,44766,44851,17755,17556,17492,17839,5388,44858,16935,44711,17904,17114,18427,16885,18446,44856,19057,36472,17335,44745,45516,44854,8753,45517,18648,45346,24441,44739,6782,13988,39676,18430,44669,18237,37267,18894,44869,44531,9341,45042,45515,22509,17771,44875,17981,17278,17657,13922,44849,18652,45051,37057,14402,17527,28313,5410,18301,18279,14622,18185)
Unknown column 'np.person' in 'where clause'