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 (17335,3,5410,44531,18279,44669,44858,43800,44845,45561,17839,6875,18996,36472,18353,44685,17527,44689,45043,44865,44687,44671,13425,5993,44875,45421,24411,4686,44739,44868,18648,6862,44835,17556,45262,18981,17601,18894,32454,17771,45517,44870,6782,17904,44837,17492,18688,18794,19057,45072,45229,44775,34194,5388,13922,18430,17237,28530,44640,31354,44863,45051,17092,17981,44848,45515,30135,18185,18900,8753)
Unknown column 'np.person' in 'where clause'