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 (18279,17114,44867,4686,45561,13922,17835,18996,45177,13425,18427,44671,9341,45421,44689,17755,45051,17771,32454,36472,44863,16885,44640,17527,45346,17092,45262,45567,18353,17703,44764,16935,17756,43800,39676,24438,17657,44711,24412,18301,44854,24411,3,44853,30963,44836,24441,17351,44766,44884,44768,18981,31354,45515,5410,44848,18900,17278,6782,44866,13988,18688,44685,17492,4765,45229,37267,17601,17009,6875)
Unknown column 'np.person' in 'where clause'