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 (44848,44775,44685,4686,44884,24441,45515,31354,18430,44836,45262,44767,18719,19078,44669,6609,44894,24438,44765,18900,17835,44837,45229,44711,44856,30986,16885,14622,16935,44739,18572,9341,18286,32454,44531,18650,18353,17556,6862,44845,18237,39676,17601,45421,44853,18301,5388,18185,18652,18996,17278,45042,19057,45561,17114,44764,45072,17527,17009,17839,44869,37057,44870,44861,13,24412,30963,22509,5410,3883)
Unknown column 'np.person' in 'where clause'