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 (17092,18185,31354,44863,6609,9341,45051,17278,36472,18648,44837,44870,8753,17351,5259,45072,16885,44854,18237,10402,45518,44766,43800,44851,17839,44845,45517,45421,30986,17527,22509,44848,37057,5410,44689,28313,18996,18650,44869,44745,44875,45515,24438,45043,45516,17009,44858,17755,44894,18301,18794,44853,18279,19057,45286,44669,45262,44687,44765,18427,18981,44878,17835,45567,14402,17848,44531,17114,17657,45346)
Unknown column 'np.person' in 'where clause'