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 (13425,24438,45180,18894,44869,18042,5388,19057,44873,14622,44866,44837,28530,45561,17351,18996,44835,44767,18301,44674,8753,18427,6782,44856,17527,36472,17755,3,30135,18900,45515,18286,44861,45286,24412,5410,44868,44870,18719,34194,44875,44855,17703,30963,44863,18650,17114,19078,44836,17848,13,44762,18279,44711,45567,30986,44671,44768,17556,44765,9341,22509,18794,24441,44531,45229,17839,17601,45042,17492)
Unknown column 'np.person' in 'where clause'