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 (18237,45561,9341,44865,44762,44884,24438,44687,24411,44745,44739,17703,44873,4765,17278,45262,44766,45051,18719,13922,17527,44765,13988,18652,44849,5993,18794,24441,37267,17981,34194,45229,45042,18650,44835,18279,22509,16885,44671,18430,45043,6862,5259,18353,18185,6875,5410,17492,31354,44775,45180,43800,17114,5388,17009,3,18648,44767,37057,44689,44531,14402,14622,44878,18042,17848,45177,6782,16935,44863)
Unknown column 'np.person' in 'where clause'