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 (5410,18185,18572,44851,4686,6609,44687,28530,44878,44671,17335,3883,17904,44845,39676,17657,44711,45561,43800,24411,44768,14622,9341,19078,17527,44875,45567,18172,37057,4765,44674,5388,45180,18353,44894,3,18894,10402,19057,44766,45042,18301,36472,5259,18648,17601,44836,17771,17848,18042,44855,17756,17009,18996,18430,32454,44739,18286,31354,45262,45515,44856,44858,45518,17278,45177,16935,17237,13988,18279)
Unknown column 'np.person' in 'where clause'