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 (24411,44855,45567,45561,44766,17237,30135,5388,18652,17839,14622,44711,45180,44866,34194,39676,13,17092,44873,44858,44745,18719,45286,44685,16935,17556,44767,8753,18572,44894,44861,44671,44849,17492,16885,17278,44762,18894,28313,45229,44869,17351,17835,44775,45051,44868,4686,18279,44856,17703,18042,44851,44863,45518,30963,45421,13922,44640,44669,44875,24412,18172,30986,6862,4765,17114,18996,18794,44531,9341)
Unknown column 'np.person' in 'where clause'