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 (45346,45421,18353,44766,44765,17114,6609,4765,39676,44853,44868,37057,45072,13922,44745,16885,44845,45515,44848,44869,17839,5259,18650,44835,44884,18286,3,44531,18301,44685,16935,34194,43800,18719,17009,44856,6862,14622,44711,17771,44870,18042,13425,44849,9341,31354,28530,45262,45277,44674,37267,45518,18894,17848,24412,45567,17981,17335,44865,17351,44768,32454,44894,44764,18648,44836,5410,45561,17278,22509)
Unknown column 'np.person' in 'where clause'