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 (18650,4765,45286,44875,18648,44765,44685,19057,18042,44884,17839,17601,6862,44858,44863,45043,44739,24412,44762,44711,45177,18894,45180,43800,17835,44851,13,18572,37267,44848,44531,24411,44768,24441,45042,44766,44764,31354,17755,44867,34194,18652,44861,45072,44854,5993,17556,18279,17335,18794,44775,18427,17009,44866,3883,44853,18446,17756,18981,22509,44674,14402,36472,44878,28530,18996,19078,18900,18301,18286)
Unknown column 'np.person' in 'where clause'