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 (45515,18996,45517,45229,17114,18286,44745,17703,44854,19057,44878,45277,14402,44835,6862,13,44687,18172,18446,18648,17601,18427,14622,18353,18650,17237,17835,45051,17771,44856,19078,45043,45177,24411,44767,37057,18185,44845,34194,18572,44869,45346,24412,45286,13988,4686,9341,31354,44669,24441,44884,6782,44640,44671,44775,5410,5993,44766,44764,44867,43800,44894,17657,18900,44762,44866,13922,17981,6875,36472)
Unknown column 'np.person' in 'where clause'