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 (45346,45286,24438,19057,34194,18353,28313,44866,45177,44878,17237,45567,44531,17904,44669,44851,17848,44868,44849,44765,44836,45277,17839,36472,37267,19078,17527,18042,43800,39676,6862,44845,17756,44687,37057,6875,44865,44766,30986,44640,22509,18172,17657,17703,9341,44768,44867,45229,3883,17601,24412,14622,17981,17835,16885,44837,5259,45561,18286,18446,18688,13425,17278,44870,45262,18648,18430,44745,5388,18719)
Unknown column 'np.person' in 'where clause'