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 (19057,44858,44868,30986,44869,45051,44765,5259,28313,31354,37267,17904,44640,39676,28530,44855,45042,44767,18301,18237,18648,6875,44845,17657,18286,44689,18446,17114,6782,45561,45286,8753,45517,44863,44687,44671,44848,17278,45346,32454,44866,45277,44711,44739,44836,18430,44766,44870,18572,44837,10402,17556,18427,37057,18185,30135,18042,17492,45177,13922,44867,44849,44762,30963,45180,19078,6862,17009,13425,18652)
Unknown column 'np.person' in 'where clause'