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,18572,32454,43800,45421,45518,18652,13,13922,44762,17835,3,44765,18427,17237,45346,17556,13425,24411,44674,18650,44854,44848,45042,44855,34194,13988,45043,6875,18279,17981,44531,17009,9341,44640,14402,44873,44764,14622,31354,44767,44768,5388,45072,44689,44884,16935,44835,45229,18446,44894,44858,18172,44851,44836,6782,45517,44863,18286,30986,17839,18185,18648,24438,17278,17527,18794,18301,19057,17848)
Unknown column 'np.person' in 'where clause'