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 (14402,17657,17556,14622,17351,44856,45517,37267,45177,17904,44863,17009,45043,16885,44745,18172,44837,45286,32454,44669,24441,44870,44531,18900,10402,44853,30963,17703,19057,45072,18301,45561,44764,18981,44674,24412,44865,17092,44869,44711,30135,18185,43800,44689,17835,13988,17848,18237,18648,44739,28313,13,13425,6782,44858,45515,44875,45051,18996,17237,6875,4765,44851,18894,45229,45516,44640,44775,44854,28530)
Unknown column 'np.person' in 'where clause'