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 (44867,39676,44863,28313,44869,17237,17601,18981,44764,45346,44531,44640,17755,17703,8753,9341,13988,44775,13922,24411,37057,44685,45277,6782,45262,18172,32454,3883,6609,5993,18042,17839,44848,44765,6875,44851,44894,44669,43800,44845,17771,18446,45561,44865,31354,44671,17092,17492,44855,44884,17835,37267,18286,17756,18900,18719,14402,44762,44858,44689,17351,4686,44768,16935,24412,18185,44875,44868,6862,24438)
Unknown column 'np.person' in 'where clause'