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 (24412,45180,44835,30135,16885,18894,44855,17848,17835,5993,45262,44671,18237,30963,13,44531,17092,44863,6875,44845,24438,45229,18301,34194,8753,44711,44869,32454,44766,18652,17756,17703,3883,44775,18650,17657,45286,14622,17278,17556,18996,44848,39676,17351,44866,44854,44768,17009,30986,44687,9341,44836,6862,45421,17114,31354,18042,44861,44873,44767,44878,28530,18794,28313,36472,16935,17904,45516,45072,44865)
Unknown column 'np.person' in 'where clause'