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 (44531,44865,30963,44836,17335,44671,44845,44762,44669,17848,8753,44866,3883,5410,16935,44861,13922,13988,44765,18237,22509,45042,44867,17278,45286,44854,13,44878,44775,6862,17703,45051,18301,44687,44870,44851,24411,44767,18279,36472,30135,45517,44764,44858,4765,17904,44835,45277,28313,44745,18572,13425,18648,18794,5993,17009,18042,18894,17492,17527,39676,18981,17839,37057,44875,18688,44640,43800,18996,17351)
Unknown column 'np.person' in 'where clause'