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 (17703,43800,3883,18794,18572,13425,45518,18279,19057,13988,30135,18237,44845,45567,45286,18688,18650,44739,18301,17771,44863,14622,17556,8753,44768,45517,44855,44762,9341,17657,45516,18894,6862,45561,17278,44745,44767,17492,17755,44867,44775,44764,17756,17114,45177,24411,44848,44873,44669,24438,19078,17009,18900,39676,18286,31354,17981,44878,4765,13922,4686,17092,45043,24412,44875,45277,45229,18981,44531,30963)
Unknown column 'np.person' in 'where clause'