{exp:query sql="SELECT eba.data as the_data FROM exp_blocks_block ebb JOIN exp_blocks_atom eba WHERE ebb.id=eba.block_id AND ebb.entry_id={last_segment} AND ebb.blockdefinition_id=87 AND eba.atomdefinition_id=413 LIMIT 1"} {the_data} {/exp:query}