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 (24412,17335,17835,16935,4765,3,17839,44685,8753,45517,45180,18981,44894,31354,44858,44739,18652,18648,45286,17981,45072,30986,44856,18427,44775,32454,18794,44845,18286,18719,44768,30963,19057,44853,13425,18650,44865,17657,24438,44762,18042,45277,44878,17092,28313,45043,18301,44531,44674,18900,44873,13,44669,19078,44870,18688,14622,44689,45229,36472,44711,44848,17351,17009,45518,18185,6609,22509,5993,10402)
Unknown column 'np.person' in 'where clause'