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 (44671,17703,44765,44878,18430,44845,44854,18688,45262,44531,44640,36472,6609,13922,18894,45229,44867,6862,44870,18042,44687,17848,19078,5993,44775,45043,45561,17771,17657,14622,45421,44866,45515,3883,18794,6875,44884,44853,45177,17492,44863,44745,17278,45286,24411,37057,18353,44685,18996,10402,45346,24412,31354,45567,44768,19057,45051,44836,45072,44894,34194,44865,13,45042,30986,16885,6782,4765,45277,24441)
Unknown column 'np.person' in 'where clause'