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 (44849,13425,17092,18794,32454,18719,18981,28530,18172,44873,44851,44837,18894,45516,6782,44861,43800,45567,3,18353,44745,17703,19057,5993,6862,44836,44878,9341,17904,18430,19078,37057,44856,30963,17657,18301,17556,44858,18237,17848,24411,37267,44767,18572,45051,44766,10402,18446,44674,44768,44884,45346,5388,18427,44845,17771,22509,44687,39676,45517,18185,44775,24438,44669,16935,44867,17009,3883,44855,44531)
Unknown column 'np.person' in 'where clause'