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 (18446,44775,6609,44856,45518,44845,18286,39676,18794,44767,44873,18894,3,17556,44689,44854,17703,36472,13,44870,18172,18353,45561,44869,17904,17114,17771,44855,30986,44711,44894,44836,44739,19057,44531,44669,44671,44884,17835,45072,44674,6862,44765,17755,17657,45567,45051,14622,3883,18688,4686,19078,18719,8753,24441,17009,45346,44640,16885,44837,17092,6782,34194,44687,44745,44878,45277,18279,17278,45517)
Unknown column 'np.person' in 'where clause'