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 (18794,17114,44873,44866,6875,45229,44671,45515,13,14402,19057,44851,44868,43800,45516,17703,45051,44875,44762,18650,8753,4765,9341,44855,45518,18353,44865,18648,44640,44685,16885,18688,18430,13425,44884,44711,18894,34194,45072,17092,45262,45177,44739,44674,24412,44689,44745,44870,45567,37057,18172,44848,45286,44854,18900,39676,17981,5410,28313,17848,17756,19078,17492,45043,28530,44775,18237,45042,17755,45180)
Unknown column 'np.person' in 'where clause'