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 (44867,44858,13425,44855,18996,44870,32454,44851,6862,44640,44745,17904,44764,16935,17556,44854,18172,43800,44836,45515,45229,13,44674,44894,18237,39676,17492,28530,18446,3,17009,34194,28313,18279,45561,45518,44866,44767,44865,18688,18894,45042,18301,44868,44671,10402,45277,44845,18286,44768,18430,18719,17771,44739,45180,44766,3883,44711,17601,44849,18794,17756,4686,17278,45051,44869,44875,45286,17835,17527)
Unknown column 'np.person' in 'where clause'