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 (17237,45229,17657,44836,45515,17556,18353,44765,18652,13988,18719,37057,18427,18794,44835,44848,17601,44894,31354,18185,18688,44875,44669,44865,45346,17114,24441,17527,39676,45177,17335,44671,44851,37267,3,6609,17278,44766,28313,45180,44873,19057,32454,4686,44674,44849,16935,24438,44866,36472,45286,45043,44768,14402,44764,44854,44689,44531,44855,5993,17848,18237,22509,28530,24412,44845,10402,18648,6862,45567)
Unknown column 'np.person' in 'where clause'