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 (18427,18430,32454,44745,44849,18446,24441,44851,44764,44739,44855,5410,5993,44884,45042,37057,18353,44767,45567,18894,17981,45517,44869,22509,18900,17009,45229,44848,44863,44858,45180,44875,45051,24438,13922,17835,45515,17703,17848,17351,44856,9341,44669,18185,18719,19057,18688,4686,45346,18794,19078,17278,24411,44861,43800,17492,44531,30986,14402,17601,45286,39676,17771,4765,44836,6862,6609,30963,44685,18652)
Unknown column 'np.person' in 'where clause'