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 (3883,13,45346,17237,44863,28530,18185,44875,45516,44711,24441,19057,44837,13988,44775,14402,17009,6782,44851,5993,13425,45042,30986,45421,44873,44671,18042,44739,44768,18719,18279,17904,44669,45262,18894,44687,18688,18650,44845,5410,44854,44762,44856,36472,44853,24411,22509,18648,45286,17601,45051,8753,17981,18446,44878,17351,44866,13922,5259,18794,44848,44870,18172,18237,17556,5388,18996,32454,18353,30963)
Unknown column 'np.person' in 'where clause'