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 (17092,18172,14622,17981,19057,45561,13988,17527,44875,39676,45346,44640,45262,44845,17009,17335,45567,5259,44855,18430,3,45515,44848,44768,17839,44685,18648,44762,18279,3883,19078,45180,44858,17492,44531,44870,44869,17835,44861,13425,14402,44765,30963,17771,18301,18688,44671,44853,44837,17114,18446,18650,36472,18353,28313,17351,18572,22509,5388,44669,45072,18652,17703,18286,18185,28530,44878,18794,32454,45051)
Unknown column 'np.person' in 'where clause'