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 (17835,16935,18042,44669,14402,44767,44685,44775,17839,13,28530,18353,6609,44640,4765,18894,17092,19057,18430,13922,22509,17492,17755,44671,18981,24411,24412,44848,16885,45277,45561,44766,18900,13988,5388,17601,5259,28313,3883,43800,17527,44856,45262,18688,44837,44845,45180,44868,18286,6875,30986,44854,44870,44866,24441,18996,45518,17904,44863,44873,44878,44855,45421,34194,6862,45072,39676,17848,44687,32454)
Unknown column 'np.person' in 'where clause'