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 (44875,18353,8753,17839,45180,19078,44848,44869,18981,18650,37267,24438,18427,17335,18172,5388,14402,45516,22509,45561,45229,17114,44894,44745,44849,45043,18286,13922,18996,16885,30963,44674,44868,32454,44711,45277,44687,45042,17835,18042,44884,13425,44863,44669,44764,13,44531,44775,3,17278,44853,17756,18648,45567,44878,17755,17092,44640,44865,18894,45421,17556,44851,44836,17771,44855,44873,4686,44854,44765)
Unknown column 'np.person' in 'where clause'