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 (44868,3,37057,17755,44685,44870,13922,18042,45277,44865,18237,44671,44853,19057,44869,44768,8753,44765,4686,45051,44531,44762,18648,44849,18185,45516,44745,18172,44875,17981,24438,34194,22509,44848,9341,44866,17092,18719,17492,39676,45286,13988,17771,17556,17335,14402,44687,18301,31354,16885,18900,13,44845,44764,5410,5259,6862,5388,30135,17848,18353,17237,45561,18446,18572,17009,44711,45567,17839,4765)
Unknown column 'np.person' in 'where clause'