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 (44873,17335,18652,45277,44868,17839,31354,17756,37267,18172,45567,13425,13922,39676,28313,45516,44884,44762,45177,18650,45346,16935,45515,44851,45518,17114,45180,18900,44894,18279,44687,44685,43800,18185,18794,6862,18237,18996,5388,44854,6782,44865,19057,44856,18042,17848,18648,44869,45051,44863,18688,45286,44711,44845,44870,44765,44745,45042,10402,17657,17835,18301,44739,6875,9341,32454,17703,45229,18719,30135)
Unknown column 'np.person' in 'where clause'