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 (44868,16885,45286,17835,18572,44767,44853,45567,43800,18719,17114,24412,17839,18042,18172,17756,44875,13988,3,44837,17848,5259,18981,44855,44745,6875,45072,44836,34194,45517,44689,6862,17278,44854,45515,17009,44873,32454,10402,44768,17755,5388,18237,18900,36472,18894,17237,45180,44765,18430,9341,45262,31354,44878,17092,18427,5410,44835,19078,37057,44865,44687,17492,6782,44531,45346,44671,44861,19057,45421)
Unknown column 'np.person' in 'where clause'