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 (17835,17114,17335,28313,17981,13425,44848,44845,17492,18237,30986,45346,13,24411,44687,16885,45286,5259,45042,17755,44836,17657,17771,44640,6875,17278,45421,17237,45517,44767,45262,44671,24412,17601,18648,44711,6609,45180,30963,10402,44531,18996,17556,44685,44853,44775,18650,37267,17848,18894,18042,31354,18794,43800,44858,44856,44868,39676,17527,6862,5993,18572,18427,14622,17092,44764,45561,44768,44873,14402)
Unknown column 'np.person' in 'where clause'