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 (5388,17114,4686,17492,44868,14622,44845,18648,30963,24411,44873,44689,45043,36472,44775,17335,6609,18650,44867,4765,17771,44855,45277,44863,22509,44866,44836,18185,44711,32454,44739,17009,45042,17904,17278,18446,45515,44685,5993,18353,44894,18427,44765,17755,44835,44849,30986,44870,18894,44878,44856,44764,44858,44875,45567,19057,8753,16935,44687,6875,45072,18900,17657,18688,45286,45517,17703,44854,44640,17756)
Unknown column 'np.person' in 'where clause'