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 (13,17904,45518,3883,44855,18981,17839,13922,18446,5259,30986,44873,44669,18172,24411,31354,17657,17703,44685,18894,17848,17527,18185,17981,44863,44764,44875,5388,44739,17771,17755,37057,45229,45421,18279,34194,44687,44836,22509,44689,45286,4686,17492,18042,44867,17278,28530,45072,44884,19057,13988,44861,17335,45515,45043,3,6875,44837,45346,28313,24438,18719,44765,18794,44671,43800,44853,44858,17835,36472)
Unknown column 'np.person' in 'where clause'