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 (18430,39676,17335,44870,18648,17657,32454,18688,8753,18652,4765,44851,45177,44674,18794,17492,14402,18981,18286,44837,45072,31354,45277,37267,6875,22509,18279,45346,44835,44845,18446,30986,17756,44531,24412,44848,44858,14622,18042,18650,44689,30135,44669,19078,5388,44884,18172,44865,44849,17556,16935,45421,5410,6609,45286,44671,44875,18301,4686,44768,45517,18894,5259,44855,24411,24441,44867,43800,5993,18996)
Unknown column 'np.person' in 'where clause'