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 (45567,44878,45421,31354,44869,17009,45051,45177,6782,45346,17527,8753,44671,44865,18894,5993,24412,4686,18286,18794,17492,45517,45043,34194,44669,45042,18572,44739,45229,17601,18996,44765,44845,14622,18688,30986,18900,18430,30135,16885,14402,44762,44848,44689,45277,28313,17351,17755,24441,44531,44745,44836,37267,17092,39676,19078,44884,44837,18652,24411,16935,44854,3,44875,17335,13922,44685,44687,43800,17756)
Unknown column 'np.person' in 'where clause'