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 (16935,44531,17981,13425,30135,18719,18279,13922,44835,44868,17703,45051,24412,10402,18446,44762,24438,44851,17351,44669,4686,44865,39676,44870,45277,45043,18301,45286,32454,6862,17237,44640,18172,17492,44858,17771,13988,14622,17601,30986,19057,18648,44869,13,44674,44861,44867,44745,45517,44845,18688,44855,4765,18794,44689,44873,44884,44685,37057,19078,24441,44764,44848,31354,44671,44894,45561,17114,18572,3)
Unknown column 'np.person' in 'where clause'