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 (16935,17114,44863,44856,5259,34194,44866,8753,6875,13,17703,44689,24438,18427,44845,17839,44640,17835,44858,17335,44855,44745,44685,18900,17009,45515,44765,44870,17092,44767,22509,18719,18301,44766,45518,5388,19057,18572,18794,44768,18430,3,13922,17755,10402,17237,45072,18894,30986,45516,18981,14402,24411,17492,6782,18996,44531,44884,44711,44835,44836,44875,17278,17657,45421,18650,30963,44762,44671,45561)
Unknown column 'np.person' in 'where clause'