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 (5259,19078,36472,17601,17335,22509,17756,18427,16935,18688,45516,18185,44865,17492,44849,3,24438,45180,45042,44775,44854,18652,44669,44765,45262,17237,18572,44863,44836,44640,28530,43800,44762,45518,17278,3883,18981,18430,18900,5388,18279,5993,18648,45517,45561,6609,44878,17904,18650,30963,24441,45421,44875,17114,18301,6875,6862,44869,44764,18042,10402,18794,44674,16885,6782,18996,44884,17755,18446,17657)
Unknown column 'np.person' in 'where clause'