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 (18185,5993,14402,22509,45180,44767,17114,18172,28530,17981,44531,24438,32454,45042,44851,17835,18996,44866,45515,44671,17237,17278,45561,44711,45346,8753,18353,18794,44669,17335,44865,18446,3,9341,17092,44687,44837,45516,24412,17904,5259,30986,18894,18572,44762,39676,44868,18286,44884,45262,5388,13988,45072,18719,18430,24441,45517,44848,44870,44853,18981,16885,5410,6862,17657,44775,44875,44768,44764,45051)
Unknown column 'np.person' in 'where clause'