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 (17237,44640,18572,45177,44851,17703,44762,45286,17278,8753,45516,34194,13922,44531,30135,13988,22509,45346,32454,45421,44884,18185,13,24441,18688,17835,5259,45561,9341,17839,45229,44894,18894,45262,6782,45567,18237,18430,16935,18996,17351,44863,18794,45180,44873,17756,6875,18353,44768,45042,17527,5388,18446,18981,14402,30986,44870,44878,6862,44868,44845,44861,19057,18286,31354,45518,44775,44767,44854,44867)
Unknown column 'np.person' in 'where clause'