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 (24412,44669,17278,44739,17527,17556,8753,44858,13988,17703,18996,6782,44674,18894,44845,18279,4765,17755,44837,44745,10402,44869,45043,28313,18648,18353,37267,22509,44835,44884,39676,17114,44689,44640,44853,5410,44848,18042,18427,45180,45229,18286,44861,18446,43800,13425,24411,18900,45567,30986,17981,17092,6875,17335,17839,45421,44865,44764,31354,45072,19078,6862,14402,44875,45042,44870,44867,5388,44851,44766)
Unknown column 'np.person' in 'where clause'