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 (17092,17114,44856,18430,17904,44848,45518,18237,45072,44869,5993,18353,17771,30135,30986,44861,45421,44640,39676,36472,24411,17657,44870,44845,45561,6782,17981,17009,44762,45277,3883,43800,44767,44837,44739,44853,18042,45515,6609,17756,17703,6862,44671,45051,31354,44851,44768,44884,5410,17335,3,4765,44685,44669,10402,44849,18652,44866,44855,17755,18688,44765,28313,18648,44836,45286,9341,4686,44858,45517)
Unknown column 'np.person' in 'where clause'