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 (5993,44764,22509,18446,17835,14622,44685,44894,28530,44775,17114,18719,32454,44689,19057,37057,24441,44767,44873,18172,44863,17755,44531,44854,17335,18427,17601,44739,17981,6875,45421,44711,8753,17092,18996,45229,44861,31354,18301,44878,44768,30963,10402,18185,17009,44858,44853,18430,30986,17839,44669,17848,17278,44837,44870,45072,45286,5410,45518,44848,44762,18981,24412,18042,44674,45043,13988,17351,18286,3)
Unknown column 'np.person' in 'where clause'