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 (45518,17009,44845,18237,44867,17755,44851,44739,18572,44765,6862,44856,45277,30986,13425,6875,37057,45262,43800,34194,37267,44853,17556,17904,45567,44849,44762,17351,44863,13,44866,45561,17848,45346,17335,44687,44837,45043,5410,18042,4686,18446,17492,18794,36472,44873,17237,22509,44640,18427,9341,18648,44858,45286,18688,44861,17601,4765,17835,8753,19057,16885,45517,14622,17657,18286,17114,44768,24412,3)
Unknown column 'np.person' in 'where clause'