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 (44894,6609,45229,44848,17657,44851,17756,44849,45516,6782,44884,44853,18172,17527,44866,8753,44768,44674,44861,44687,45072,44640,44765,17848,44767,17771,18894,18719,28530,45421,44739,13425,44745,22509,45042,44855,44867,45277,18688,44878,44858,44869,17839,17601,19078,45043,17351,44671,45567,44865,32454,3883,24411,44854,9341,18301,45346,18430,17556,19057,18446,18650,45051,17335,37057,18237,18353,44669,44766,44764)
Unknown column 'np.person' in 'where clause'