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 (30135,4765,44854,13988,18172,44865,18185,19057,17278,45518,13922,18688,28530,43800,44837,44685,44848,44766,5410,18301,30986,44856,44835,17114,17556,45516,3,24438,5993,18430,30963,17835,44853,44767,44878,44669,44866,17771,6862,17848,17092,44861,44739,44765,37267,19078,45051,17601,45286,13,32454,18572,45421,45515,18981,44884,17351,39676,16935,44674,18650,6875,18900,18446,18794,18279,44870,44640,24411,44836)
Unknown column 'np.person' in 'where clause'