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 (44845,44762,18572,44855,18719,6862,39676,44853,44775,18981,45042,44531,28313,17527,44873,17114,18900,44687,44863,44671,14402,28530,45421,17703,30963,30986,44875,16935,18688,45517,10402,37057,4765,44870,17848,45177,17771,6782,45072,3,44894,13988,18237,44835,18894,14622,45051,44858,17601,44868,44674,45518,32454,30135,18353,44865,44878,45286,13922,44837,44711,45229,44854,44884,17556,6875,18427,44739,8753,18042)
Unknown column 'np.person' in 'where clause'