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 (45286,5388,44669,13922,17771,18648,28530,18042,30963,18279,44868,30135,17009,44865,17848,18652,45043,17601,44689,17703,16935,44836,24438,45567,45042,18286,44837,31354,24441,17756,18353,17092,17278,17114,18794,14402,8753,44866,13,13425,45072,5259,24411,28313,44765,44711,44875,17835,44869,44856,4686,17492,44687,44745,44867,36472,44861,18237,44768,18430,45515,18650,18981,45561,19057,18688,17351,17335,44873,32454)
Unknown column 'np.person' in 'where clause'