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 (24438,18185,17835,44845,44858,13922,18572,18688,44685,44762,10402,44768,44837,45421,13425,5993,45561,45517,18996,4765,44836,44875,45072,5410,45262,6782,17335,24411,19057,44711,18719,28313,44851,17092,45277,17601,30963,44835,44865,28530,44867,24412,45518,17981,18894,18172,17527,44766,18427,18286,44855,18648,44764,44767,18981,4686,17657,18279,44775,31354,44854,44849,16935,17904,44745,17114,17756,18430,16885,19078)
Unknown column 'np.person' in 'where clause'