[eluser]jshultz[/eluser]
Ok, changed 'query' to 'id' and also tried: 'busid'=> $bus_id[0]['id'], and neither one worked. now getting:
Error Number: 1048
Column 'busid' cannot be null
INSERT INTO `photos` (`userid`, `thumb`, `fullsize`, `busid`) VALUES ('1', '/home/welcomet/public_html/assets/images/gallery/thumbs/epic-fail-family-portraits-fail1.jpg', '/home/welcomet/public_html/assets/images/gallery/epic-fail-family-portraits-fail1.jpg', NULL)
(I'm just uploading random photos for testing)