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 (18794,18286,44865,44837,44745,37267,37057,44870,45262,18996,16935,44671,17601,45042,44869,45051,13922,44531,44866,24412,18446,44768,44689,44685,18430,45177,45567,18981,44868,31354,44640,4686,18353,44845,44873,18279,45277,44878,45516,44775,17009,19057,5388,18688,6862,45072,17492,44669,44764,45515,18042,44863,18172,44762,44767,17657,6875,18900,17835,17527,17981,18719,45043,28530,44836,45229,45517,17904,44739,45561)
Unknown column 'np.person' in 'where clause'