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 (24411,17527,17335,32454,18719,45346,44711,43800,18427,44531,18688,18185,44866,45561,44858,45515,18237,13,45262,30963,44768,14622,44873,28313,44745,13922,6875,45229,44836,44856,17839,8753,24412,18981,31354,37267,44685,18648,17848,44775,44837,17756,44640,37057,17351,17092,18996,45177,22509,5993,45567,14402,17278,44689,39676,44669,44767,44851,17601,45286,13425,44766,18279,44764,17835,17009,45518,44687,16885,45277)
Unknown column 'np.person' in 'where clause'