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 (18648,37057,18353,44865,44674,44836,16885,44867,3883,17492,45072,44837,44869,44739,13,24411,19057,45180,17657,44849,17351,14402,45262,44531,44878,44894,13922,17092,18172,44745,18572,44685,39676,18894,44766,18900,17756,34194,17848,18652,44856,44868,17527,17009,17278,44845,45051,8753,5259,17771,17835,18042,30135,44853,44873,17755,44875,30963,24412,44669,44866,45277,18996,28530,4765,17335,45043,30986,44671,17114)
Unknown column 'np.person' in 'where clause'