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 (24411,39676,44866,5410,43800,13988,45229,3,24441,18446,45516,17114,17848,8753,18652,5388,18237,44870,45262,44849,13,6782,44764,17839,18648,10402,32454,44858,45043,17351,28530,44671,45561,44837,17835,17335,18981,17755,45051,44884,6875,17527,18688,24412,31354,44685,24438,18719,18042,44869,13922,17009,9341,18430,16935,44669,5993,30986,18286,18572,44687,44739,5259,17904,44863,44848,30135,18900,6609,4765)
Unknown column 'np.person' in 'where clause'