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 (17835,17335,44837,30135,45346,17703,44870,18237,13,44689,44766,44836,17657,44745,45051,44853,4765,19078,17848,19057,44875,44849,17237,36472,45518,18894,44845,44873,44739,6609,44835,44894,18172,18981,45229,44865,44858,37057,45042,45421,13922,18688,9341,39676,3,44866,24411,44867,44856,5410,3883,17351,17904,44775,18996,44764,6862,18652,44674,18648,45072,44711,17278,43800,6875,45517,45561,44640,13425,44531)
Unknown column 'np.person' in 'where clause'