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 (28313,44835,44863,44685,17904,17771,45421,18648,22509,4686,31354,8753,30135,18237,44775,30963,45518,24441,44855,17657,16885,44671,30986,44875,17009,17527,18279,44878,44674,44856,45180,45567,45516,17601,18042,17114,10402,44849,45277,44867,45229,45042,18900,44866,18688,44764,17492,44711,5259,44669,44837,44854,19078,44836,17981,5388,18427,6875,18286,17237,44768,44767,45072,44640,18353,44531,5993,36472,44845,5410)
Unknown column 'np.person' in 'where clause'