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 (44869,44866,13,45051,17835,37267,44863,44671,18719,8753,16935,44711,17237,17904,10402,44764,44674,44835,45516,44762,14622,3883,44531,18900,18185,19078,45561,44765,18894,30986,18301,22509,17755,44767,44884,17657,17009,45277,28530,44685,44669,6875,17839,18446,17601,45229,44868,17114,44837,5993,44689,18237,45177,30963,32454,45042,44640,18981,44687,13922,39676,17335,44848,17981,17492,18172,31354,14402,43800,44867)
Unknown column 'np.person' in 'where clause'