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 (45072,17114,45517,19057,17556,16935,24412,14402,39676,44878,32454,44765,3883,17981,18900,37267,45515,44764,24438,17492,18185,18353,30135,44835,18430,44674,44739,9341,18279,10402,3,44851,44856,44870,44873,17335,44853,17756,44848,45051,45229,16885,44689,44869,44875,22509,44855,13988,17527,18652,19078,6875,44845,17848,18446,37057,5993,17092,44768,43800,18427,4765,18572,18301,5388,44837,44884,44669,44745,17755)
Unknown column 'np.person' in 'where clause'