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 (45043,18981,44739,18286,6862,45177,5259,44878,44775,19057,30963,44853,18894,34194,45515,14622,44870,24441,37057,44849,17657,10402,6609,18301,19078,18353,44867,44685,17527,44762,16885,18172,9341,44863,18279,17601,17092,18427,17114,44837,45262,44868,44851,5410,18572,17492,24438,18042,44865,3,44766,44845,17755,17009,18794,44894,44884,8753,31354,13988,43800,24411,13922,30986,17835,45561,17556,3883,18237,44873)
Unknown column 'np.person' in 'where clause'