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 (6862,44873,17657,45043,44870,19078,44689,44739,45346,45567,14622,17981,18237,16885,44685,44669,17756,44674,34194,45262,44836,18650,18430,44894,18286,44875,44745,44845,44671,18996,44711,45051,17114,14402,17556,44766,44854,44764,44848,17351,18446,17092,37267,6609,18572,5388,44858,44869,8753,18981,45072,18279,24438,43800,18353,44765,44687,18900,18648,18185,45229,45177,17278,45277,44768,44855,13988,32454,45517,17848)
Unknown column 'np.person' in 'where clause'