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 (18353,31354,30135,9341,13,28530,17601,44531,18237,6609,44884,24411,19057,6782,45177,44870,45043,44878,44866,3,45277,44671,44837,45567,30963,45421,37057,18650,17335,16935,43800,44849,8753,18172,5388,18301,44853,45051,44764,18719,14402,45229,44775,44669,18996,18900,17492,5410,3883,6875,45518,45561,17556,18042,36472,18652,18894,44687,44848,44865,14622,13922,13988,44836,17835,45072,44745,17771,6862,17657)
Unknown column 'np.person' in 'where clause'