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 (44835,17492,45515,45177,17527,28530,44640,18996,44837,44674,17335,3883,44858,30963,44671,34194,9341,45277,5993,18719,45042,45072,44884,17755,18894,44856,44863,19078,45043,18185,32454,44861,45567,18981,17237,17756,18794,17351,44855,44870,13988,44775,44853,44865,18430,6609,17601,13,24412,14622,45518,44739,44669,17278,45051,18279,31354,17657,45229,44762,18572,44765,18652,17771,18648,18237,17848,6862,45180,45286)
Unknown column 'np.person' in 'where clause'