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 (45177,18794,14402,44685,17839,6782,18446,17351,17335,44854,44711,18286,17771,18042,43800,17278,44669,45180,28530,45286,44894,18900,18427,13922,17527,18572,44835,34194,45518,6875,10402,18237,44531,45051,44856,18279,44739,45567,45277,30135,44865,3883,17009,45262,18185,31354,19078,44875,36472,18894,45346,45043,18430,44687,9341,18719,4765,44764,44745,18353,14622,18648,44870,30986,6862,5993,45561,44863,13988,44836)
Unknown column 'np.person' in 'where clause'