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 (5388,44856,17492,44766,3883,6862,17904,17601,4686,44894,30986,39676,31354,24438,44854,44853,43800,10402,44884,24411,45518,18650,44711,17657,45421,45567,37057,45517,44855,45042,13922,44775,44767,5993,22509,17335,44873,6609,17527,13988,18353,18894,18572,44875,4765,44848,18042,18172,17756,18900,45043,36472,17114,45262,16885,19078,28530,17092,18719,44878,13425,16935,18996,44861,45561,18430,17771,45346,44835,18237)
Unknown column 'np.person' in 'where clause'