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 (19057,5410,13,31354,16935,37057,3883,45042,30135,44870,45229,45518,13922,28313,24441,18894,44762,45515,18981,44835,18042,16885,24412,18237,44894,18446,32454,44836,44849,44884,44873,17756,44858,44768,44764,17556,24438,17237,18353,30963,44766,5388,13425,45180,19078,17839,44854,39676,44687,17848,17981,34194,28530,6875,44739,45051,14622,45286,22509,45277,17527,18279,6862,18794,44689,17492,18430,44640,18648,17904)
Unknown column 'np.person' in 'where clause'