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 (8753,5993,19057,6875,28530,17904,44884,44762,44863,18430,17114,44766,36472,19078,44764,17839,44837,44878,17848,13922,44849,44640,44671,24438,18572,45516,16885,13425,31354,44865,18650,17771,44711,44845,45042,45072,44765,45561,45177,18996,18301,45180,37057,17601,44836,44851,34194,18279,44531,5410,4765,17009,18981,44861,10402,18794,18894,3883,44870,18648,44868,44894,44867,30986,24441,45229,37267,44854,17492,44853)
Unknown column 'np.person' in 'where clause'