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 (44870,18648,17601,24438,18650,44866,22509,44837,45180,9341,18652,44851,17771,18981,45229,18042,13,44669,17835,28530,18996,6782,16935,44768,17351,44848,37057,45042,28313,45421,18894,36472,13988,44836,45277,44853,44711,5410,13425,18172,45072,17492,19078,45517,45177,5388,17092,13922,44762,18353,44745,44845,44766,44689,45516,44867,8753,39676,17756,6862,44878,44767,44685,45051,6609,44855,45518,30986,17278,24441)
Unknown column 'np.person' in 'where clause'