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 (37057,44687,8753,44739,18430,18981,18652,43800,44765,18172,18042,13425,5259,45177,30986,36472,30135,4686,18286,45072,44853,6782,45051,17492,44836,44851,18648,28530,18719,17848,45515,13988,17237,44640,6875,44854,13922,9341,19057,18688,6609,17756,17703,17351,5410,45043,44764,44870,18650,17556,19078,17839,24411,44868,44768,3,44884,44845,30963,44671,44711,44867,44878,44856,17278,44863,18446,17092,44766,45567)
Unknown column 'np.person' in 'where clause'