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 (18894,45515,44531,44870,44866,45229,17839,3883,44869,13,28313,18172,18719,45518,17981,13425,6782,44861,44745,17335,5388,44855,14402,44837,17114,30986,32454,16885,45561,14622,37057,17848,18279,45072,24412,45516,18427,30135,44854,24411,44875,17835,17492,44685,34194,44671,44894,45042,5259,44765,44848,45051,28530,17009,44762,44851,45277,4765,45346,45043,45180,44669,44849,18286,18996,17278,44836,17237,31354,19057)
Unknown column 'np.person' in 'where clause'