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 (45180,45051,14402,30986,45567,19057,44739,5388,3883,44848,28530,18430,44531,18572,10402,17755,17556,18185,45229,17114,22509,18279,18688,17756,18650,45277,44765,24412,44851,24441,18427,13,18353,44768,4765,45517,4686,44866,5410,44764,45518,13922,17657,44894,18652,43800,28313,44836,32454,44845,44863,13988,30963,17981,37057,44861,17527,8753,44762,44855,44837,18446,44873,45286,45515,18996,17009,44685,44867,44835)
Unknown column 'np.person' in 'where clause'