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 (17771,45262,13,30963,45567,17848,14402,19078,45517,45286,44775,13988,45177,44835,45277,44671,17756,17601,44849,18981,5388,44739,44865,13922,36472,17703,3,44851,44768,17981,45516,44669,19057,44762,6875,44640,43800,18430,18688,17237,18719,3883,6782,28313,18279,44869,5259,45515,39676,44863,34194,24438,32454,18301,44745,44766,44868,44853,44873,45518,22509,18286,17009,44858,18900,44870,44855,24411,44861,8753)
Unknown column 'np.person' in 'where clause'