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 (44870,44854,44674,18688,30963,44884,44861,44849,31354,45516,37057,17981,18353,17703,18430,17755,32454,13425,18894,22509,4686,45072,18172,44671,44865,44689,17657,44845,5410,45567,5259,44711,18648,44848,18185,17556,44745,16885,44869,19057,43800,17009,28530,44685,17904,17756,45277,3883,18981,44855,44873,13,8753,45515,17335,14402,3,44856,24411,45262,17771,18900,44768,14622,36472,44837,17839,30986,16935,18042)
Unknown column 'np.person' in 'where clause'