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 (5993,45518,18172,18427,45043,18719,44894,30135,18688,44867,17848,19078,45072,45042,45517,45515,45561,17756,45051,37267,3883,17351,44745,28530,39676,44884,17278,44863,18279,18794,3,44640,24441,30963,44855,24438,17771,44849,18446,18042,32454,17492,44766,17657,5259,13922,44764,8753,44870,4765,17114,17981,44845,18185,44689,44685,44856,36472,44853,13,17237,30986,22509,45567,18650,18237,44858,18430,44866,31354)
Unknown column 'np.person' in 'where clause'