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 (37267,44711,18185,18237,44689,24411,45516,44869,30963,17755,44837,17703,45518,17839,5993,44764,10402,18427,45177,44856,6862,18279,17556,24438,28313,18996,44868,44674,45042,45051,17771,18794,44739,6782,28530,44766,30135,45043,44873,13988,18688,4765,45180,45286,45517,3,44669,44853,17981,44685,45229,17756,17527,5388,44858,14622,44767,31354,24412,34194,44865,44849,17092,32454,44531,16885,17278,44745,17835,44863)
Unknown column 'np.person' in 'where clause'