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 (45517,17114,44869,18185,17351,44687,31354,18446,44836,45072,45561,30135,18794,17835,16885,18427,6862,17492,44685,44739,44884,5993,45177,44764,22509,45229,18572,18652,14402,45277,17009,44669,17556,16935,44849,44671,4686,45516,18719,13922,44873,45567,44865,43800,30963,17092,44868,6609,24412,45051,17839,17848,18237,30986,44775,44875,45286,44835,17527,28530,17904,24438,45043,44866,28313,44765,18286,45421,44762,18648)
Unknown column 'np.person' in 'where clause'