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 (44849,45180,6875,30986,44869,14622,44845,44669,45516,44856,44867,44870,5388,30963,13988,44762,44745,18427,44878,44873,6782,3,13425,18185,3883,37057,44711,45177,43800,28313,18572,18652,45346,18446,6609,24411,17237,16885,14402,44854,5993,17755,9341,44689,18237,45517,44865,18286,18430,17092,5259,37267,45518,17114,17981,4765,17835,13,19078,5410,44835,24441,44687,44775,44671,18996,17657,4686,17009,18650)
Unknown column 'np.person' in 'where clause'