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,22509,17657,45561,44764,45516,18042,14622,45517,18794,17771,18981,43800,44687,17756,18688,17114,44865,30135,3,37057,45286,17601,44873,17904,10402,34194,24411,17556,44867,45180,6782,17351,6862,44836,44711,45515,44894,44853,18719,44848,17278,18650,44531,45421,44854,28530,17009,13922,19078,44851,18572,5259,13,18996,6609,30986,44765,45051,45262,45177,28313,45072,44868,6875,18652,32454,44835,44674,18286)
Unknown column 'np.person' in 'where clause'