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 (44835,44865,44853,17556,10402,18794,18572,19078,18185,44863,18279,44894,17601,13425,6782,18900,44861,44685,18301,44858,44869,44870,17848,44836,18996,18237,44854,8753,44768,17657,45561,44766,19057,18042,44848,44640,32454,24438,44845,5993,17981,45229,30963,17237,18688,45516,45515,44851,18353,44867,18894,17904,17771,22509,17527,44866,44687,44711,18981,44531,44868,3883,14402,6875,44739,44873,17009,5388,45072,45277)
Unknown column 'np.person' in 'where clause'