Skip to content

Instantly share code, notes, and snippets.

@OliverUv
Created July 30, 2012 14:50
Show Gist options
  • Save OliverUv/3207497 to your computer and use it in GitHub Desktop.
Save OliverUv/3207497 to your computer and use it in GitHub Desktop.
$skeleton_rows = $db->getResult(
"SELECT class_instance_a as skeleton_id
FROM class_instance_class_instance cici,
class_instance ca,
class_instance cb
WHERE relation_id = {$relations['model_of']}
AND class_instance_b = $neuronID
AND cici.class_instance_a = ca.id
AND cici.class_instance_b = cb.id
AND ca.class_id = {$classes['skeleton']}
AND cb.class_id = {$classes['neuron']}");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment