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 (17601,28530,37267,45567,44884,24438,5388,31354,44739,36472,24412,18353,18185,44669,45042,44775,18572,13,45516,44866,4765,17835,17492,44768,44767,17114,30986,17981,45561,24441,45229,3883,44853,17335,45043,16885,17092,44766,45421,17657,6782,44849,44745,45518,44869,44685,14622,18279,45051,44863,44835,44845,18172,44836,18894,44671,45286,44531,45517,17351,18719,44854,17703,18688,45072,30963,18286,44873,13988,18794)
Unknown column 'np.person' in 'where clause'