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 (16935,17848,13988,17492,37057,44685,45518,18237,28313,17601,17114,44671,44711,44853,18688,44894,16885,44640,5388,30986,34194,17771,10402,17904,24412,44855,45567,44856,14402,44775,44865,18042,45516,18981,18719,45346,45072,44835,44845,44837,18286,14622,44764,4765,45517,44848,22509,24441,31354,17556,44669,45177,17835,18301,13922,17839,18894,5993,39676,44884,44531,45180,30963,44745,19057,18427,6862,44687,17703,18172)
Unknown column 'np.person' in 'where clause'