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 (17756,5410,13988,9341,45346,17092,44848,14402,44739,14622,44863,44837,17527,18648,18353,6862,3,22509,44845,17009,18279,44671,44854,34194,30963,44745,44855,17904,6782,44853,39676,17114,44765,17657,44687,44766,28530,45277,44894,13425,45262,45042,44851,18650,16935,24441,5259,44531,18900,17601,45177,17835,18427,31354,43800,44669,17755,18894,10402,45561,18172,18996,18719,17335,45051,17839,6609,4686,44868,5388)
Unknown column 'np.person' in 'where clause'