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,13922,45072,34194,18237,44764,44531,17839,44768,44894,44855,22509,44848,17703,6609,45286,44837,3883,18172,17835,18353,45043,6862,24412,18981,5388,44863,44858,44674,45051,24438,18688,44884,17756,9341,45516,44849,17981,44853,10402,18185,18894,31354,44856,14402,45277,6875,4686,30135,28530,45517,32454,44765,18572,44873,18648,17335,44685,44687,44669,37267,17492,17092,18286,44711,44775,17278,44868,17848,18301)
Unknown column 'np.person' in 'where clause'