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 (17335,44762,17237,18042,44884,24441,13425,4686,30963,44845,24411,17839,44764,44866,31354,18353,22509,45517,17556,45561,43800,19057,4765,3,18427,44671,44768,44863,17009,44689,6862,5410,17904,44869,17981,9341,18301,44848,13922,24438,44687,45277,44739,3883,44640,10402,5259,8753,6782,37267,44835,44867,44858,18572,13,18648,44685,45286,44765,19078,44531,17848,44873,45051,44868,5388,17092,45229,45567,45043)
Unknown column 'np.person' in 'where clause'