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 (45072,45043,44685,44687,44768,44856,39676,44870,17092,9341,44875,34194,44531,44775,44739,17703,44865,44837,45421,30135,5388,18900,44711,44640,17848,45229,17278,44851,17755,45042,18648,17009,18286,17492,6875,18353,17835,44762,45518,17351,44767,44766,44671,44878,24412,5259,44869,45262,44765,44836,44863,45177,5410,44867,45180,16885,18237,32454,4765,18572,44894,18652,28530,45517,3,44884,17657,44854,44866,31354)
Unknown column 'np.person' in 'where clause'