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 (45277,18185,45421,44765,17601,44767,44878,17848,45177,44867,45516,45043,44640,44870,45515,45518,44685,4686,19078,44671,24438,14402,32454,5993,44875,45517,18286,18430,18794,44766,17904,17237,44745,13,5259,44854,44865,44689,17703,30135,24441,24411,18279,18572,17114,44856,44848,17556,45561,8753,17335,18894,44669,45180,18237,44835,18900,14622,13988,30986,17009,44868,16935,13425,22509,18996,45051,43800,44739,18353)
Unknown column 'np.person' in 'where clause'