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 (18042,44869,44739,44762,13922,44894,44689,45515,18900,45561,17839,22509,17771,18446,45043,18185,13,44745,17351,3,18301,18981,18237,30135,44854,18648,31354,44674,44853,44711,17904,45051,44878,5259,44884,45277,17492,6609,44835,14622,17335,37057,44848,6875,44845,17756,44855,44775,44868,28530,44875,17755,10402,18572,5410,18279,17657,24412,14402,45177,45262,17703,8753,17848,32454,5993,43800,5388,17835,45516)
Unknown column 'np.person' in 'where clause'