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 (44767,4686,24438,18650,32454,17755,5259,44640,44671,18279,17092,45518,44861,18652,18172,44674,19078,17848,18353,44873,13,18042,3,17981,44856,45567,18286,44855,45286,37267,44868,19057,45346,44764,44863,44870,18572,9341,18894,44739,17278,44685,5410,44854,44858,6875,17904,18688,44851,44878,18185,16935,17114,28313,34194,18981,16885,18237,44768,17492,44835,45262,24412,44853,14402,17556,24411,44745,17351,17771)
Unknown column 'np.person' in 'where clause'