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 (22509,44775,28530,17904,45051,45517,18648,17756,17835,14622,18279,44689,44671,18042,44873,44869,17009,3883,17755,13988,44765,44849,44855,18446,5388,17703,14402,45346,17657,30986,18430,44768,31354,18286,44766,16935,16885,24411,24412,45177,44685,44711,5993,18650,13,32454,44853,44884,45561,45515,10402,44745,30135,44875,45043,44835,44867,28313,34194,4765,44836,44865,37057,18688,45072,44739,17237,24441,18427,45229)
Unknown column 'np.person' in 'where clause'