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,44853,18996,44775,44878,24438,17278,9341,44867,6782,45567,22509,45229,44870,44762,14402,36472,44764,44865,17114,19057,18185,13,17848,45051,17237,18042,44671,44849,18430,16935,5410,45262,44767,44685,44858,45042,44873,4765,18688,17756,17092,44689,44739,6875,44861,44837,44848,17601,17527,44766,13922,18237,44836,18286,45515,32454,44856,31354,17492,5259,10402,44765,18981,45561,44866,44868,17556,18719,18648)
Unknown column 'np.person' in 'where clause'