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 (24438,44762,17848,16885,45177,3,18185,17601,18894,6782,45421,18981,18301,44745,45516,44870,17771,45286,44845,44865,18427,17492,17556,44856,45072,18042,44671,19057,5388,44848,17237,45042,30963,45043,10402,14402,6609,18648,43800,44836,16935,17981,45567,45561,14622,17756,44837,18688,17092,18650,44855,44866,18446,8753,3883,36472,17839,18430,6862,18794,18286,17835,17527,44766,37267,39676,13988,44863,17335,24411)
Unknown column 'np.person' in 'where clause'