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 (6609,44848,18237,19078,45180,37057,45516,17657,19057,44870,44687,18688,17601,10402,31354,4686,30963,44531,17114,18430,45515,17981,17904,14402,13425,16935,44640,44669,3883,24411,45229,13922,22509,44745,5388,18650,44849,17092,13,45567,17351,44775,44711,44835,45561,17237,44873,17835,18301,17756,44836,18353,18042,44865,36472,3,44884,44851,18648,5993,17278,44766,17848,44764,18900,45286,9341,5259,45277,24412)
Unknown column 'np.person' in 'where clause'