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,18172,30986,44671,44768,43800,24411,3883,18688,44764,17335,18279,18650,45180,30963,44851,44863,6782,44855,45262,44868,45051,17278,13,36472,3,44531,45229,13922,44674,18237,17771,17848,44739,14622,45515,44856,16935,34194,17114,17904,45516,18286,44894,45421,30135,45277,44689,17657,17351,18996,6862,44869,44835,17492,28530,8753,44837,5388,44854,6875,44849,18900,16885,19078,18353,44762,44687,18430,10402)
Unknown column 'np.person' in 'where clause'