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 (44766,44768,30986,14402,44775,17092,17335,5993,45042,18648,17703,45518,18042,32454,44848,44837,45229,13,24412,44861,24411,44875,17351,44867,45346,4686,24441,44765,10402,18185,17601,45286,44685,17835,44845,6862,13922,22509,18172,44858,44853,18794,44849,17756,9341,18279,18237,44836,44739,44764,45072,44711,5388,3883,44687,44884,17904,18996,44894,8753,5410,44767,44531,17771,17755,17009,44669,5259,6875,44869)
Unknown column 'np.person' in 'where clause'