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 (31354,9341,45072,44766,16885,18430,18894,44869,24412,18042,44849,43800,17703,13922,32454,44762,44878,19057,18279,45517,44640,19078,17009,17839,13425,6782,22509,18900,44848,45277,44711,44768,18650,45043,6862,13,18301,44858,39676,18353,5259,17278,3883,44861,18286,17601,44894,44775,24411,44669,44835,44868,44685,4765,18719,45516,8753,18652,45051,6875,18172,30963,44865,5410,3,18648,17114,17527,6609,45346)
Unknown column 'np.person' in 'where clause'