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 (45177,44869,17114,45072,44531,44835,44856,44870,45516,17527,39676,14622,44853,16885,31354,4765,44868,45515,44845,44836,44849,45262,14402,17237,44767,44851,9341,30986,18894,17556,17278,18430,44837,44745,13922,18900,44766,45042,45180,45421,43800,13425,45286,44875,18648,17756,44863,44764,5993,17657,3,19057,44687,19078,17092,44873,30963,17904,44762,18650,44640,28313,44669,45567,34194,17009,10402,37267,44866,17839)
Unknown column 'np.person' in 'where clause'