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 (31354,45516,17835,18185,13425,5259,24441,44845,17278,18353,45518,43800,17904,45346,18572,18286,30135,24411,28530,3883,44875,45042,17981,44739,18794,18427,44764,18650,17848,6782,44640,18446,44689,44853,18279,17755,17556,44868,17756,44765,10402,17237,18301,13988,18648,45277,17351,16885,39676,44767,18900,17839,44873,37267,5993,17657,45180,44685,4765,30986,13922,44835,5410,22509,44837,44849,45177,17771,32454,45515)
Unknown column 'np.person' in 'where clause'