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 (5388,45180,18237,18279,18648,18688,44689,31354,44671,24412,44765,44768,32454,8753,28530,44849,37057,45421,44766,34194,5993,6862,17009,44711,44669,44865,17556,44894,45515,44863,17981,18794,44868,44674,45517,17492,17848,43800,3,13425,19057,5259,45042,5410,16885,17335,18185,44685,6609,45567,45072,18650,18353,17527,44870,18572,44875,4686,45561,45229,17703,18652,17092,17278,6875,44837,44531,13,18042,44873)
Unknown column 'np.person' in 'where clause'