Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (17601,45516,10402,44764,13988,44894,24412,5993,18185,44685,44855,6862,17839,44869,18981,18652,18301,44836,44835,16935,17703,18430,44768,44762,17771,5410,45262,18996,44858,44745,31354,6609,17657,45180,36472,9341,17492,45561,44861,44671,24411,44873,18900,44878,44865,44849,39676,44711,30135,18719,18172,44775,22509,45515,17981,17009,18042,17092,5259,45421,8753,44531,17114,45567,44640,13425,18688,17278,45277,24441)
Unknown column 'np.person' in 'where clause'