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 (45518,44863,14402,6609,5259,44689,17237,17771,45043,6862,45567,43800,45517,10402,17092,18427,18688,44711,28530,17756,44685,45561,18430,17839,24411,16935,17351,5388,19078,44861,44855,17755,17657,45180,44858,45042,17703,44640,44865,18894,44849,44869,37057,45177,5993,18648,44687,44531,6875,13988,24412,44739,44870,44853,45277,45515,18286,44768,13425,17904,39676,44884,44866,6782,18996,18900,30135,17009,18042,36472)
Unknown column 'np.person' in 'where clause'