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,13988,44766,17835,14622,44765,16885,44689,18981,44836,44884,45518,19078,17848,18430,44739,17601,24411,16935,44837,44768,44861,18185,30963,17556,17092,18996,44865,44851,13425,45262,18648,44775,32454,17755,19057,17114,45072,45229,45180,45286,45516,5388,13,18301,3,6875,17351,44671,36472,18172,45346,9341,44764,18794,45277,28313,44854,44856,18650,44640,18237,44711,17771,44869,17657,18900,17981,18894,18427)
Unknown column 'np.person' in 'where clause'