I'm have attempted to write a multi-table select query. I get it to display in phpmyadmin, unfortunately I'm running into a problem when ari returns the data.
SELECT ief_rsticketspro_tickets.code, ief_rsticketspro_ticket_messages.Date, ief_rsticketspro_custom_fields_values.value, CONCAT('<a href="
pond.turtlesoutheast.com/index.php/current-tickets/view-ticket/' ,ief_rsticketspro_tickets.id ,'-equipment-down' , '</a>') AS weblink
FROM ief_rsticketspro_custom_fields_values INNER JOIN (ief_rsticketspro_ticket_messages INNER JOIN ief_rsticketspro_tickets ON ief_rsticketspro_ticket_messages.ticket_id = ief_rsticketspro_tickets.id) ON ief_rsticketspro_custom_fields_values.ticket_id = ief_rsticketspro_tickets.id
WHERE (((ief_rsticketspro_custom_fields_values.custom_field_id)=1))