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 (18652,8753,19057,13425,45042,44861,39676,44865,18042,44894,18279,44856,44764,44854,44669,17848,45072,18237,45180,14402,37057,44873,17335,18301,6875,5259,19078,44848,17835,17839,24438,18648,18427,5410,31354,45561,44858,9341,45518,44640,18894,16935,44711,18353,6782,32454,37267,22509,24411,24441,13922,17981,44765,18185,17556,18996,45262,18650,44836,17237,45286,45516,44762,16885,18981,30986,17904,13988,44851,44766)
Unknown column 'np.person' in 'where clause'