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 (4765,24411,44739,44837,45277,44863,45421,45043,44870,13988,44867,44689,31354,45515,36472,19057,45561,37057,18894,18446,44894,18996,5993,8753,44711,32454,44765,44865,44848,17556,44671,30986,6875,28530,30963,44853,24412,44669,5388,18279,44531,44674,17755,17771,17114,14402,17492,45346,44878,43800,18430,18353,18301,45072,6862,18042,44766,18286,44869,13425,17835,24438,17601,10402,5410,45051,37267,45180,44764,18650)
Unknown column 'np.person' in 'where clause'