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 (5993,19078,18688,44845,44867,32454,18301,44835,18900,28313,30135,44854,17556,44870,18286,37267,17755,45517,44775,5259,17492,24441,45043,44848,17009,17351,17114,16935,14622,44739,45421,44894,17703,44766,44531,18996,39676,31354,44711,17601,44866,43800,45051,44767,44868,45180,45515,16885,4686,44873,44764,18185,18648,44865,45516,44669,13,44858,18719,44855,44671,44685,18353,44687,5410,44884,44863,44836,44765,6782)
Unknown column 'np.person' in 'where clause'