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 (43800,44671,18648,44861,17835,44837,45516,45043,17114,16935,19057,17703,13988,45286,44855,44851,18237,44873,17556,18172,18427,44767,5410,44858,3,44531,18572,34194,5388,44853,44894,44674,17351,19078,30963,18042,45072,18688,31354,9341,6875,30986,18996,44640,6609,18446,44745,44768,17335,13425,44849,44870,44689,18286,28313,32454,17278,3883,18719,24438,18353,16885,44884,45180,17981,44835,44854,45421,44766,18894)
Unknown column 'np.person' in 'where clause'