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 (18688,32454,18996,17009,44851,44669,44867,44837,45516,44870,44762,45072,44856,39676,5388,45421,18446,28530,44849,17556,24412,19078,17839,44861,44689,17278,44775,45051,44884,19057,44764,44858,6782,18427,44865,17771,6875,18237,18430,44671,17492,17981,17237,44868,44640,18981,43800,17092,14622,44863,44869,44875,13922,44836,45346,16885,17835,44768,5993,22509,34194,18794,44853,18042,44848,18353,44766,24411,17114,5410)
Unknown column 'np.person' in 'where clause'