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 (44765,6782,44764,18427,44868,18301,44531,44689,45262,19057,31354,18650,18794,10402,17981,5388,37267,24438,17848,16935,45421,18981,43800,8753,13425,44865,45180,45286,13988,17092,44848,18900,44671,44669,44873,44685,44739,30135,45277,17771,18353,18648,17703,36472,44870,44845,4686,18286,37057,5410,18430,45517,14402,44835,44762,45043,18446,44687,44745,44866,17114,6862,17278,45518,17335,24441,18688,13,45346,5259)
Unknown column 'np.person' in 'where clause'