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 (44884,44853,44765,14622,18237,44858,30963,3,17351,18286,45517,24412,44762,4765,44873,13988,45515,31354,18996,24438,45229,16935,44531,28313,6875,6862,44848,18894,45043,45180,44878,18427,44851,44868,17527,44849,45286,6609,4686,9341,44856,44640,18279,44835,44865,45277,14402,45516,36472,45177,17904,44861,45421,17556,44671,30135,44739,44845,44775,44836,44854,17492,18446,44869,17601,44875,17703,18185,45561,32454)
Unknown column 'np.person' in 'where clause'