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 (5259,18572,18185,44685,44856,16935,19057,37057,44851,44764,18900,18430,45286,43800,6782,44849,44869,24411,17527,44855,6862,44711,44854,17771,17756,45177,44867,17904,45042,44836,24438,5410,31354,44835,17351,44853,45277,45421,44873,44674,45072,14622,17092,17839,13425,44861,39676,32454,44689,45516,45517,30963,45346,44745,17492,4765,17848,14402,45561,18042,45567,44766,3883,45043,18279,44866,44858,17601,18301,44767)
Unknown column 'np.person' in 'where clause'