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 (45286,5993,19078,44865,18719,44868,18286,3883,44687,22509,34194,44849,24412,37267,45518,9341,45180,18981,44856,5388,44845,37057,24438,18042,18648,45561,45567,44762,45515,17755,17756,45516,17904,18172,17556,44861,17981,43800,44671,17009,13922,45277,44853,16885,44835,45229,44775,18572,32454,17848,44870,17351,13988,44875,5259,44768,39676,24441,6875,17601,14402,44669,24411,44745,18650,45177,18996,45346,17657,44531)
Unknown column 'np.person' in 'where clause'