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 (9341,18719,19057,43800,17492,17756,44689,44775,45180,18446,44869,44870,5259,17556,17657,45567,45516,17351,45051,4765,44836,18648,17839,44855,16885,34194,45518,44764,44873,17755,45043,13922,17527,37267,45286,45517,14402,45421,44671,16935,5410,17009,17703,44765,37057,6782,44884,44745,44687,44868,17904,19078,44851,30963,13425,8753,24412,13988,17848,18279,44853,44849,17601,44861,44768,18353,44711,6862,17771,24441)
Unknown column 'np.person' in 'where clause'