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 (44687,18981,17278,44669,3,5388,18427,17492,17755,44869,17556,19078,14622,45515,44867,44875,17839,44848,44640,45561,9341,37267,45286,13988,5410,32454,44765,18648,44768,44835,44762,44894,18185,18652,44870,4765,18719,44856,44767,17601,44868,44845,18353,6875,44865,45042,44685,44836,17756,17703,44745,6862,18237,17771,45262,13922,45180,18286,18650,44739,34194,45516,44689,13,45518,44878,44711,17657,17351,24441)
Unknown column 'np.person' in 'where clause'