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 (14622,44858,18996,13,30986,18427,36472,28530,22509,45177,45262,10402,44837,45180,3,44854,44689,6609,18648,44640,44875,5388,45229,17755,44851,31354,44849,44836,6782,44739,45567,44869,45043,18719,16935,17335,16885,6875,44669,17839,17527,44685,45346,17657,44687,39676,44855,28313,17092,44856,44711,18430,44878,19057,30963,18237,17114,30135,45515,45051,17703,45421,44865,17756,44745,18894,37057,45517,6862,17351)
Unknown column 'np.person' in 'where clause'