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 (44766,5388,17335,44531,44894,37267,32454,30963,44764,17114,45051,44685,44863,45515,44870,18996,44775,22509,18172,45517,14402,17278,44855,44854,24438,18572,44687,18648,18446,17756,45177,44765,44739,3883,6782,45043,44671,44853,17839,30986,13988,18427,17527,16935,18652,17556,44837,45421,44845,44674,17771,6875,17755,5259,45518,43800,17835,36472,44858,44848,44851,45042,44866,45286,18794,18981,45561,44745,17492,44689)
Unknown column 'np.person' in 'where clause'