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 (18446,18894,44689,13,17848,34194,44869,17556,44669,19078,44835,8753,17009,45177,18900,18427,45072,16935,17755,18286,44849,44851,44775,45043,44865,36472,5388,9341,24438,44866,44848,44687,39676,44894,17839,28530,44762,45277,31354,17278,44870,18042,44836,13922,44873,43800,3883,17527,44861,44711,17335,14622,44745,44867,17114,45517,22509,44765,6782,17492,44878,44531,44856,44768,24412,6862,44863,32454,6875,44739)
Unknown column 'np.person' in 'where clause'