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 (17703,17527,18900,18894,17657,17351,44669,4765,17335,5388,44640,45277,44689,6862,22509,13,45262,5410,43800,44865,44873,17839,17904,28530,31354,45229,4686,44863,44531,44837,44849,17114,45515,24438,17756,30963,18688,44845,18648,44855,18794,24411,44878,18981,44861,44687,18353,17278,17556,32454,39676,44766,45180,30986,44870,45421,18650,44869,18042,17237,45518,5993,45561,18652,5259,44835,44762,24412,44765,37267)
Unknown column 'np.person' in 'where clause'