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 (18286,44878,18996,44869,5388,44873,18237,45518,18648,13,44894,36472,17771,24412,44856,4765,45346,6862,17703,17756,32454,44739,18981,17601,45043,17981,14402,17351,44775,44854,17839,44762,44766,16935,18279,30963,5259,4686,44531,45561,24411,44848,17904,45421,18572,9341,34194,18430,28530,18042,45180,44837,17848,44853,45072,10402,6875,45567,31354,18894,3,18446,45262,18185,44685,44858,45177,8753,44865,18652)
Unknown column 'np.person' in 'where clause'