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 (18353,17835,17848,44845,5410,18900,45180,44861,17335,18572,44766,32454,17092,45262,44866,36472,18688,44853,5259,17839,18794,44868,17009,31354,45043,8753,17351,30986,6782,17237,16935,3,17703,44875,44873,4686,44851,44762,18301,45051,13425,44869,9341,18172,44836,24412,18996,6609,30135,24441,45072,44739,44767,44711,44689,13988,17556,17527,22509,45346,37057,14622,17114,44687,18648,44764,13922,17771,45515,44855)
Unknown column 'np.person' in 'where clause'