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 (19057,18042,22509,44849,5388,44765,18650,45518,44531,44855,44745,17237,5410,6782,17756,4686,45286,45567,18237,17601,44863,45043,44854,45516,24411,17009,44873,44836,44870,17278,28313,4765,16885,45517,44775,14622,44866,19078,45346,44853,18894,18688,18981,44766,24412,16935,44861,44764,37057,18652,3883,13988,17657,18648,45042,44837,17351,17114,18996,17904,18427,44869,44845,18446,45051,45262,5993,44768,44868,45177)
Unknown column 'np.person' in 'where clause'