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 (44775,16935,4765,45561,45043,5259,17835,17556,44870,18301,45518,17657,44762,16885,44768,44854,17756,44689,44739,44765,17601,13988,18172,24438,28530,44836,18900,6862,18894,44875,44853,44669,17755,44837,18353,9341,6782,44863,14622,44531,44856,45346,17848,18688,17492,19057,30986,45516,14402,44868,37057,17703,44858,44848,24441,44869,8753,45286,18279,45515,13922,17981,44865,44845,44674,44878,5993,17839,45072,13)
Unknown column 'np.person' in 'where clause'