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 (44851,34194,44865,18185,45043,45561,44762,17527,44853,44689,45515,19057,17009,31354,18648,44836,18794,17556,22509,45516,17335,3883,6782,44869,17092,44685,44863,45286,18430,18572,44855,44866,39676,44845,6609,44854,17492,24438,30963,18286,9341,17839,18279,44745,24412,44861,44711,18981,5410,4686,44669,44894,5259,8753,45518,18894,17771,44687,37267,44856,18688,45567,16935,4765,17351,44848,17835,45517,13922,17278)
Unknown column 'np.person' in 'where clause'