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 (44849,18648,6782,18794,14622,39676,17278,8753,44855,44669,44845,44765,30135,44867,5388,45517,17981,17335,18996,44671,37267,44836,44851,18042,45180,44869,44739,45518,6862,18430,18301,18981,44875,18446,45051,44873,17835,43800,44531,44640,4686,24411,17839,44837,44689,44687,17601,17703,18894,24441,44854,5993,17092,17556,45177,44768,22509,19057,44711,28313,18900,17114,31354,37057,18688,44767,24438,30986,18185,6875)
Unknown column 'np.person' in 'where clause'