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 (45051,17492,5388,18353,13425,18301,44875,44884,5993,24411,3883,44762,17278,16885,44745,44856,17703,6782,28530,44863,17835,32454,18719,18446,44873,45229,44531,44671,45561,17756,8753,44865,44711,45567,6875,18894,44766,44674,45180,17009,44878,30963,44640,44685,44765,22509,18572,44894,24438,37057,44775,18286,44689,31354,44870,44858,18900,45277,30135,44866,17114,34194,30986,45421,44867,45042,44837,39676,6609,18981)
Unknown column 'np.person' in 'where clause'