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 (18648,17981,44853,44866,13,44868,39676,18279,18185,5259,17092,37267,18650,6875,45517,28530,14622,18446,18996,37057,17904,28313,17009,45177,17351,44848,18572,6609,44711,30135,3,44685,18900,44856,5993,6862,22509,44687,17848,17278,3883,13922,43800,24438,17835,44845,31354,17756,44767,44854,19078,44835,17556,44766,18688,24441,17601,24412,45561,18794,5388,44765,44745,45515,45346,18719,45518,14402,44775,16885)
Unknown column 'np.person' in 'where clause'