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 (45421,44766,44835,44739,34194,44868,18648,44866,18430,44878,44873,19057,45177,45051,17556,6609,17492,32454,18042,4686,45518,5993,37267,18427,44689,24412,14622,44762,18688,17278,44837,17092,44640,8753,4765,45517,17114,44865,18446,18237,44870,17657,44875,10402,17839,6782,39676,45516,28530,18652,44674,44848,30963,45277,44745,44863,18794,18286,45042,18650,44711,13425,17835,17351,5410,16935,5259,18572,17771,13)
Unknown column 'np.person' in 'where clause'