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 (43800,19057,14622,17556,39676,45072,45262,30986,44739,45561,44853,45051,18446,18572,45180,45042,18981,44894,18430,18172,44866,45043,18650,44868,44669,44863,18286,44851,44855,8753,17335,10402,6862,30963,5993,17492,18688,44687,44836,45177,44865,17839,19078,44835,17092,16935,44671,28530,5410,44745,44674,45515,44640,4686,44875,44765,18894,24411,45517,9341,6875,37057,45286,17009,5388,44849,36472,44689,17771,44861)
Unknown column 'np.person' in 'where clause'