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 (18572,44854,44768,18279,19078,44865,18794,3,19057,17835,44767,18981,18719,45277,45421,24441,45262,17657,45518,45561,39676,44837,5410,44875,44711,13922,44851,28313,45346,17848,32454,17556,17351,45051,30986,22509,45043,44894,45177,44863,44855,28530,3883,13,13988,18894,6875,18237,18652,44848,18286,18172,44669,16885,18688,44745,18042,18353,44856,18427,43800,17009,45286,18650,45515,44689,8753,17601,17527,44873)
Unknown column 'np.person' in 'where clause'