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 (45277,45180,17556,45515,44739,18042,18301,3,32454,44531,16885,37267,17703,4765,44762,44865,18648,14402,13922,34194,44870,44836,22509,45229,45262,44767,17009,16935,45072,17492,44894,28313,44775,6609,45567,17848,3883,44765,44669,45561,24438,18353,45517,44768,8753,43800,24412,19057,18688,18172,9341,17601,18794,44851,13988,24441,44687,44845,18427,17527,17771,45043,18237,17351,5993,44861,44854,6782,17839,30963)
Unknown column 'np.person' in 'where clause'