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 (45043,18794,44640,4686,45516,19057,8753,18996,18894,44745,43800,18427,45517,44765,45515,18279,44870,45567,3,45229,45518,17657,44848,17703,17904,5993,44894,13,31354,37057,4765,44863,44853,17556,45051,44837,17755,44873,39676,18042,32454,18301,44845,6875,44866,17092,30135,44858,5388,44689,45346,28530,18572,13988,22509,18688,28313,13425,44669,17009,17771,44764,17839,6782,18650,34194,44856,44711,44767,44687)
Unknown column 'np.person' in 'where clause'