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 (45515,17237,45043,44836,18894,18981,44858,44689,18042,17351,17114,16885,9341,16935,5410,6875,18353,44870,17904,4686,24441,18446,17981,45516,24411,6609,36472,17703,45421,44868,45042,44766,45180,45567,44845,13922,44837,18688,44894,44687,17278,32454,17756,18648,18427,18650,8753,5993,17839,13,45518,44745,18185,18996,45229,18301,44674,14622,44764,44669,17835,30963,5259,44866,19078,45072,24438,44855,44775,45517)
Unknown column 'np.person' in 'where clause'