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 (5410,44873,17703,31354,18430,18719,19057,17657,18981,14402,22509,18996,44711,45515,18652,32454,16885,45051,6862,44640,13922,24441,44875,44866,24411,44865,44855,17527,4765,6782,44531,13988,45177,18688,18237,17771,44685,45286,44863,44878,44851,45277,45042,45516,44762,37057,17492,44768,44894,18900,18446,18279,45346,4686,19078,44870,44861,44671,18894,18353,44764,10402,44867,44687,45043,18042,13425,30986,17904,44854)
Unknown column 'np.person' in 'where clause'