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 (44687,44845,32454,16885,44858,24441,18446,39676,45180,24438,37267,45177,44875,22509,44765,18981,24412,45561,18185,44848,44689,18279,24411,28530,10402,44836,45518,5259,18652,45517,17835,44878,44531,6875,13425,30135,45346,44873,45229,5388,44764,17114,18237,13988,44866,18042,18688,45277,43800,44861,45516,45421,44849,45262,5410,17755,30963,17492,17237,8753,17839,18572,3883,17904,44685,44674,44762,44894,6609,44739)
Unknown column 'np.person' in 'where clause'