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 (17657,45421,17839,17278,45286,5993,44866,17492,30135,18652,18648,44689,45346,45567,44762,18794,6862,44858,44867,44853,32454,44764,17904,44878,44855,9341,45043,19078,44836,17335,44875,45516,37267,44835,5259,31354,24412,37057,44739,44851,18427,44640,18430,36472,6875,17351,13,44856,44711,45042,44745,18185,18301,28313,44767,45229,24441,44865,44674,17756,18446,18353,43800,22509,44765,18688,18894,19057,44837,18650)
Unknown column 'np.person' in 'where clause'